diff options
author | Chris Lattner <sabre@nondot.org> | 2008-03-01 08:45:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-03-01 08:45:05 +0000 |
commit | 2b94fe35edf951a14ecd32b21f7ebcc2e3754c67 (patch) | |
tree | 03940ec1270cb024df1793b9dec75aa3dd938dce /CodeGen/CodeGenModule.h | |
parent | 72fc3b30d775a6b720dd0dd87aa853226f0625dd (diff) |
Add codegen support for ObjC message expressions with the GNU runtime.
Patch by David Chisnall!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47789 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenModule.h')
-rw-r--r-- | CodeGen/CodeGenModule.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CodeGen/CodeGenModule.h b/CodeGen/CodeGenModule.h index 7863f7bebd..80ce3076d4 100644 --- a/CodeGen/CodeGenModule.h +++ b/CodeGen/CodeGenModule.h @@ -15,6 +15,7 @@ #define CLANG_CODEGEN_CODEGENMODULE_H #include "CodeGenTypes.h" +#include "CGObjCRuntime.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/StringMap.h" @@ -52,6 +53,7 @@ class CodeGenModule { const llvm::TargetData &TheTargetData; Diagnostic &Diags; CodeGenTypes Types; + CGObjCRuntime *Runtime; llvm::Function *MemCpyFn; llvm::Function *MemSetFn; @@ -65,7 +67,9 @@ class CodeGenModule { public: CodeGenModule(ASTContext &C, const LangOptions &Features, llvm::Module &M, const llvm::TargetData &TD, Diagnostic &Diags); + ~CodeGenModule(); + CGObjCRuntime *getObjCRuntime() { return Runtime; } ASTContext &getContext() const { return Context; } const LangOptions &getLangOptions() const { return Features; } llvm::Module &getModule() const { return TheModule; } |