diff options
author | Dan Gohman <gohman@apple.com> | 2012-02-16 00:57:37 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2012-02-16 00:57:37 +0000 |
commit | b49bd27b334a6c4e3bf9d810a7d5b022578f1194 (patch) | |
tree | 581c0e3a331d44255a09a3c38c7d4e2e707b8244 /lib/CodeGen/CodeGenFunction.h | |
parent | 9f02d6d2b7d62971ea619b4d0a6e68508e50ec24 (diff) |
Teach clang to add metadata tags to calls and invokes in ObjC with
-fno-objc-arc-exceptions. This will allow the optimizer to perform
optimizations which are only safe under that flag.
This is a part of rdar://10803830.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150644 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 9081ece6f8..263a0639fa 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -2566,6 +2566,8 @@ private: CodeGenModule::ByrefHelpers * buildByrefHelpers(llvm::StructType &byrefType, const AutoVarEmission &emission); + + void AddObjCARCExceptionMetadata(llvm::Instruction *Inst); }; /// Helper class with most of the code for saving a value for a |