]> granicus.if.org Git - clang/commitdiff
ASTUnit: Don't create an LLVMContext, it shouldn't be needed.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 2 Dec 2009 08:43:56 +0000 (08:43 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 2 Dec 2009 08:43:56 +0000 (08:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90310 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/ASTUnit.cpp

index 6e3a1e1fa7b73c9682ca73ac034a6673200bde02..ac213380588a925aba4ee9f15dee26bd39f64112 100644 (file)
@@ -30,7 +30,6 @@
 #include "clang/Basic/TargetOptions.h"
 #include "clang/Basic/TargetInfo.h"
 #include "clang/Basic/Diagnostic.h"
-#include "llvm/LLVMContext.h"
 #include "llvm/System/Host.h"
 #include "llvm/System/Path.h"
 using namespace clang;
@@ -200,7 +199,7 @@ ASTUnit *ASTUnit::LoadFromCompilerInvocation(const CompilerInvocation &CI,
                                              bool OnlyLocalDecls,
                                              bool UseBumpAllocator) {
   // Create the compiler instance to use for building the AST.
-  CompilerInstance Clang(&llvm::getGlobalContext(), false);
+  CompilerInstance Clang;
   llvm::OwningPtr<ASTUnit> AST;
   NullAction Act;