diff options
Diffstat (limited to 'clang/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/CodeGen/CodeGenModule.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/CodeGen/CodeGenModule.h b/clang/CodeGen/CodeGenModule.h index d72b84549c8..8e40483bd57 100644 --- a/clang/CodeGen/CodeGenModule.h +++ b/clang/CodeGen/CodeGenModule.h @@ -15,6 +15,7 @@ #define CODEGEN_CODEGENMODULE_H #include "CodeGenTypes.h" +#include "llvm/ADT/DenseMap.h" namespace llvm { class Module; @@ -35,7 +36,7 @@ class CodeGenModule { llvm::Module &TheModule; CodeGenTypes Types; - //llvm::DenseMap<const Decl*, llvm::Constant*> GlobalDeclMap; + llvm::DenseMap<const Decl*, llvm::Constant*> GlobalDeclMap; public: CodeGenModule(ASTContext &C, llvm::Module &M); @@ -43,6 +44,8 @@ public: llvm::Module &getModule() const { return TheModule; } CodeGenTypes &getTypes() { return Types; } + llvm::Constant *GetAddrOfGlobalDecl(const Decl *D); + void EmitFunction(FunctionDecl *FD); void PrintStats() {} |