[cfe-commits] r75869 - in /cfe/trunk: lib/CodeGen/CGExpr.cpp tools/clang-cc/clang-cc.cpp

Owen Anderson resistor at mac.com
Wed Jul 15 17:14:12 PDT 2009


Author: resistor
Date: Wed Jul 15 19:14:12 2009
New Revision: 75869

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

Modified:
    cfe/trunk/lib/CodeGen/CGExpr.cpp
    cfe/trunk/tools/clang-cc/clang-cc.cpp

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

==============================================================================
--- cfe/trunk/lib/CodeGen/CGExpr.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExpr.cpp Wed Jul 15 19:14:12 2009
@@ -31,7 +31,7 @@
                                                     const char *Name) {
   if (!Builder.isNamePreserving())
     Name = "";
-  return new llvm::AllocaInst(VMContext, Ty, 0, Name, AllocaInsertPt);
+  return new llvm::AllocaInst(Ty, 0, Name, AllocaInsertPt);
 }
 
 /// EvaluateExprAsBool - Perform the usual unary conversions on the specified

Modified: cfe/trunk/tools/clang-cc/clang-cc.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/clang-cc.cpp?rev=75869&r1=75868&r2=75869&view=diff

==============================================================================
--- cfe/trunk/tools/clang-cc/clang-cc.cpp (original)
+++ cfe/trunk/tools/clang-cc/clang-cc.cpp Wed Jul 15 19:14:12 2009
@@ -2126,7 +2126,7 @@
 int main(int argc, char **argv) {
   llvm::sys::PrintStackTraceOnErrorSignal();
   llvm::PrettyStackTraceProgram X(argc, argv);
-  llvm::LLVMContext Context;
+  llvm::LLVMContext &Context = llvm::getGlobalContext();
   llvm::cl::ParseCommandLineOptions(argc, argv,
                               "LLVM 'Clang' Compiler: http://clang.llvm.org\n");
   





More information about the cfe-commits mailing list