[llvm-commits] [llvm] r78997 - /llvm/trunk/include/llvm/Support/IRBuilder.h

Erick Tryzelaar idadesub at users.sourceforge.net
Thu Aug 13 23:12:31 PDT 2009


Author: erickt
Date: Fri Aug 14 01:12:30 2009
New Revision: 78997

URL: http://llvm.org/viewvc/llvm-project?rev=78997&view=rev
Log:
A couple IRBuilder functions were still using getGlobalContext().

Modified:
    llvm/trunk/include/llvm/Support/IRBuilder.h

Modified: llvm/trunk/include/llvm/Support/IRBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/IRBuilder.h?rev=78997&r1=78996&r2=78997&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Support/IRBuilder.h (original)
+++ llvm/trunk/include/llvm/Support/IRBuilder.h Fri Aug 14 01:12:30 2009
@@ -165,14 +165,14 @@
 
   /// CreateRetVoid - Create a 'ret void' instruction.
   ReturnInst *CreateRetVoid() {
-    return Insert(ReturnInst::Create(getGlobalContext()));
+    return Insert(ReturnInst::Create(Context));
   }
 
   /// @verbatim
   /// CreateRet - Create a 'ret <val>' instruction.
   /// @endverbatim
   ReturnInst *CreateRet(Value *V) {
-    return Insert(ReturnInst::Create(getGlobalContext(), V));
+    return Insert(ReturnInst::Create(Context, V));
   }
 
   /// CreateAggregateRet - Create a sequence of N insertvalue instructions,
@@ -187,7 +187,7 @@
     Value *V = UndefValue::get(RetType);
     for (unsigned i = 0; i != N; ++i)
       V = CreateInsertValue(V, retVals[i], i, "mrv");
-    return Insert(ReturnInst::Create(getGlobalContext(), V));
+    return Insert(ReturnInst::Create(Context, V));
   }
 
   /// CreateBr - Create an unconditional 'br label X' instruction.





More information about the llvm-commits mailing list