From 7afbb8c08c2e5e0161d21138a291450b012bc048 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 2 Dec 2009 08:43:56 +0000 Subject: [PATCH] ASTUnit: Don't create an LLVMContext, it shouldn't be needed. llvm-svn: 90310 --- clang/lib/Frontend/ASTUnit.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clang/lib/Frontend/ASTUnit.cpp b/clang/lib/Frontend/ASTUnit.cpp index 6e3a1e1fa7b7..ac213380588a 100644 --- a/clang/lib/Frontend/ASTUnit.cpp +++ b/clang/lib/Frontend/ASTUnit.cpp @@ -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 AST; NullAction Act;