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 | dce1406f1c1f572cfd61c494546572d63461c741 (patch) | |
tree | 6b35656721ffcc672a3be7af1ffe3710ff7e2d64 /lib/CodeGen/CodeGenModule.cpp | |
parent | 630404b16e886238ed68a1abbfe2e548f43aa664 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52756 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 1d0001c607..e235b60f7d 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/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) |