[cfe-commits] r75041 - in /cfe/trunk/lib/CodeGen: CGObjCGNU.cpp CodeGenFunction.cpp

Owen Anderson resistor at mac.com
Wed Jul 8 13:52:25 PDT 2009


Author: resistor
Date: Wed Jul  8 15:52:20 2009
New Revision: 75041

URL: http://llvm.org/viewvc/llvm-project?rev=75041&view=rev
Log:
Update for IRBuilder API change.

Modified:
    cfe/trunk/lib/CodeGen/CGObjCGNU.cpp
    cfe/trunk/lib/CodeGen/CodeGenFunction.cpp

Modified: cfe/trunk/lib/CodeGen/CGObjCGNU.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjCGNU.cpp?rev=75041&r1=75040&r2=75041&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjCGNU.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjCGNU.cpp Wed Jul  8 15:52:20 2009
@@ -1173,7 +1173,7 @@
       llvm::GlobalValue::InternalLinkage, ".objc_load_function",
       &TheModule);
   llvm::BasicBlock *EntryBB = llvm::BasicBlock::Create("entry", LoadFunction);
-  CGBuilderTy Builder;
+  CGBuilderTy Builder(TheModule.getContext());
   Builder.SetInsertPoint(EntryBB);
 
   std::vector<const llvm::Type*> Params(1,

Modified: cfe/trunk/lib/CodeGen/CodeGenFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenFunction.cpp?rev=75041&r1=75040&r2=75041&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenFunction.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenFunction.cpp Wed Jul  8 15:52:20 2009
@@ -27,6 +27,7 @@
 CodeGenFunction::CodeGenFunction(CodeGenModule &cgm) 
   : BlockFunction(cgm, *this, Builder), CGM(cgm),
     Target(CGM.getContext().Target),
+    Builder(cgm.getModule().getContext()),
     DebugInfo(0), SwitchInsn(0), CaseRangeBlock(0), InvokeDest(0), 
     CXXThisDecl(0) {
   LLVMIntTy = ConvertType(getContext().IntTy);





More information about the cfe-commits mailing list