diff options
author | Chris Lattner <sabre@nondot.org> | 2008-06-26 04:19:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-06-26 04:19:03 +0000 |
commit | 87ab27d42fd78139031bcc873537a8608408c7fe (patch) | |
tree | 2a3b2903777ec682d3acee27f1009de678d3b043 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 63dd337fc2fccc5f9879726662e30066ff1bd4aa (diff) | |
download | bcm5719-llvm-87ab27d42fd78139031bcc873537a8608408c7fe.tar.gz bcm5719-llvm-87ab27d42fd78139031bcc873537a8608408c7fe.zip |
give CreateObjCRuntime a full CGM so it can get whatever state it needs,
instead of passing in just a couple random things it currently
happens to use.
llvm-svn: 52756
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 1d0001c607a..e235b60f7d4 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -39,9 +39,7 @@ CodeGenModule::CodeGenModule(ASTContext &C, const LangOptions &LO, Types(C, M, TD), MemCpyFn(0), MemMoveFn(0), MemSetFn(0), CFConstantStringClassRef(0) { //TODO: Make this selectable at runtime - Runtime = CreateObjCRuntime(M, - getTypes().ConvertType(getContext().IntTy), - getTypes().ConvertType(getContext().LongTy)); + Runtime = CreateObjCRuntime(*this); // If debug info generation is enabled, create the CGDebugInfo object. if (GenerateDebugInfo) |