diff options
author | Nate Begeman <natebegeman@mac.com> | 2008-04-18 23:43:57 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2008-04-18 23:43:57 +0000 |
commit | 532485cc6c078d9e51b517c6bbd8984deb17f0fe (patch) | |
tree | 74107fce19cbbb2af6774cf4e2338796f62e5c25 /lib/CodeGen/CodeGenModule.h | |
parent | d6595fa87cd031dab36c6dbb723ae19e822ab2aa (diff) |
Add support to module codegen for adding and emitting annotations
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49944 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | lib/CodeGen/CodeGenModule.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index 3fcb56e3c4..e192e9913e 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -59,6 +59,7 @@ class CodeGenModule { llvm::Function *MemSetFn; llvm::DenseMap<const Decl*, llvm::Constant*> GlobalDeclMap; std::vector<llvm::Constant*> GlobalCtors; + std::vector<llvm::Constant*> Annotations; llvm::StringMap<llvm::Constant*> CFConstantStringMap; llvm::StringMap<llvm::Constant*> ConstantStringMap; @@ -99,6 +100,8 @@ public: void AddGlobalCtor(llvm::Function * Ctor); void EmitGlobalCtors(void); + void AddAnnotation(llvm::Constant *C) { Annotations.push_back(C); } + void EmitAnnotations(void); void EmitObjCMethod(const ObjCMethodDecl *OMD); void EmitFunction(const FunctionDecl *FD); |