aboutsummaryrefslogtreecommitdiff
path: root/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-03-01 08:45:05 +0000
committerChris Lattner <sabre@nondot.org>2008-03-01 08:45:05 +0000
commit2b94fe35edf951a14ecd32b21f7ebcc2e3754c67 (patch)
tree03940ec1270cb024df1793b9dec75aa3dd938dce /CodeGen/CodeGenModule.cpp
parent72fc3b30d775a6b720dd0dd87aa853226f0625dd (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.cpp')
-rw-r--r--CodeGen/CodeGenModule.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/CodeGen/CodeGenModule.cpp b/CodeGen/CodeGenModule.cpp
index e3181337bf..5e63a80c94 100644
--- a/CodeGen/CodeGenModule.cpp
+++ b/CodeGen/CodeGenModule.cpp
@@ -31,7 +31,14 @@ CodeGenModule::CodeGenModule(ASTContext &C, const LangOptions &LO,
llvm::Module &M, const llvm::TargetData &TD,
Diagnostic &diags)
: Context(C), Features(LO), TheModule(M), TheTargetData(TD), Diags(diags),
- Types(C, M, TD), MemCpyFn(0), MemSetFn(0), CFConstantStringClassRef(0) {}
+ Types(C, M, TD), MemCpyFn(0), MemSetFn(0), CFConstantStringClassRef(0) {
+ //TODO: Make this selectable at runtime
+ Runtime = CreateObjCRuntime(M);
+}
+
+CodeGenModule::~CodeGenModule() {
+ delete Runtime;
+}
/// WarnUnsupported - Print out a warning that codegen doesn't support the
/// specified stmt yet.