]> granicus.if.org Git - clang/commitdiff
Update for LLVM API change.
authorOwen Anderson <resistor@mac.com>
Thu, 16 Jul 2009 00:14:12 +0000 (00:14 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 16 Jul 2009 00:14:12 +0000 (00:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75869 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGExpr.cpp
tools/clang-cc/clang-cc.cpp

index bd751adb3eaf8e4e1c445b708890875f6204d5d0..377834d24799936cd019607145b18ea0b0c7deb8 100644 (file)
@@ -31,7 +31,7 @@ llvm::AllocaInst *CodeGenFunction::CreateTempAlloca(const llvm::Type *Ty,
                                                     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
index def46c2f7a1cf1e2f89153bc32416e7a29f95b8d..bb18a998b2f07c8a448741fc5b917cb55bb760a0 100644 (file)
@@ -2126,7 +2126,7 @@ InputFilenames(llvm::cl::Positional, llvm::cl::desc("<input files>"));
 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");