diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-01-06 22:33:54 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-01-06 22:33:54 +0000 |
commit | cd93b96bc51c255d104095bc6a6d8eac74a84b1e (patch) | |
tree | c31c8e9b2814e9b28ae61a27b9ce088de0a9c601 /lib/CodeGen/CodeGenModule.h | |
parent | 5eca482fe895ea57bc82410222e6426c09e63284 (diff) |
objc++: more code gen stuff for atomic property api,
currently turned off. // rdar://6137845
Also, fixes a test case which should be nonatomic under
new API.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147691 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | lib/CodeGen/CodeGenModule.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index 0517521d2c..e78089b5c5 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -276,6 +276,8 @@ class CodeGenModule : public CodeGenTypeCache { llvm::StringMap<llvm::Constant*> CFConstantStringMap; llvm::StringMap<llvm::GlobalVariable*> ConstantStringMap; llvm::DenseMap<const Decl*, llvm::Value*> StaticLocalDeclMap; + + llvm::DenseMap<QualType, llvm::Constant *> AtomicHelperFnMap; /// CXXGlobalInits - Global variables with initializers that need to run /// before main. @@ -398,6 +400,14 @@ public: StaticLocalDeclMap[D] = GV; } + llvm::Constant *getAtomicHelperFnMap(QualType Ty) { + return AtomicHelperFnMap[Ty]; + } + void setAtomicHelperFnMap(QualType Ty, + llvm::Constant *Fn) { + AtomicHelperFnMap[Ty] = Fn; + } + CGDebugInfo *getModuleDebugInfo() { return DebugInfo; } ASTContext &getContext() const { return Context; } |