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
This commit is contained in:
Chris Lattner
2008-06-26 04:19:03 +00:00
parent 63dd337fc2
commit 87ab27d42f
4 changed files with 16 additions and 30 deletions

View File

@@ -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)