summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorErik Pilkington <erik.pilkington@gmail.com>2019-02-14 19:58:37 +0000
committerErik Pilkington <erik.pilkington@gmail.com>2019-02-14 19:58:37 +0000
commited91c1fa86780ee9ce2a02031dbcef3176174a76 (patch)
tree5c83cb20af15ed396ada928f50d231e1471b3b30 /lib/CodeGen/CodeGenModule.h
parent893b8523f1e00a965d91fef0358dfc96af865bac (diff)
downloadclang-ed91c1fa86780ee9ce2a02031dbcef3176174a76.tar.gz
[CodeGenObjC] Emit [[X alloc] init] as objc_alloc_init(X) when available
This provides a code size win on the caller side, since the init message send is done in the runtime function. rdar://44987038 Differential revision: https://reviews.llvm.org/D57936 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@354056 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r--lib/CodeGen/CodeGenModule.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h
index 4139a0e031..a652f143d0 100644
--- a/lib/CodeGen/CodeGenModule.h
+++ b/lib/CodeGen/CodeGenModule.h
@@ -124,6 +124,9 @@ struct ObjCEntrypoints {
/// void objc_allocWithZone(id);
llvm::FunctionCallee objc_allocWithZone;
+ /// void objc_alloc_init(id);
+ llvm::FunctionCallee objc_alloc_init;
+
/// void objc_autoreleasePoolPop(void*);
llvm::FunctionCallee objc_autoreleasePoolPop;