summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-12-02 08:43:56 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-12-02 08:43:56 +0000
commit7afbb8c08c2e5e0161d21138a291450b012bc048 (patch)
tree4b5bc0acfbc28783a18336998081863c7bf7f8ef
parent67c008707453eb62cec8e6c249b71b13934c153e (diff)
downloadbcm5719-llvm-7afbb8c08c2e5e0161d21138a291450b012bc048.tar.gz
bcm5719-llvm-7afbb8c08c2e5e0161d21138a291450b012bc048.zip
ASTUnit: Don't create an LLVMContext, it shouldn't be needed.
llvm-svn: 90310
-rw-r--r--clang/lib/Frontend/ASTUnit.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Frontend/ASTUnit.cpp b/clang/lib/Frontend/ASTUnit.cpp
index 6e3a1e1fa7b..ac213380588 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<ASTUnit> AST;
NullAction Act;
OpenPOWER on IntegriCloud