[cfe-commits] r90310 - /cfe/trunk/lib/Frontend/ASTUnit.cpp

Daniel Dunbar daniel at zuster.org
Wed Dec 2 00:43:57 PST 2009


Author: ddunbar
Date: Wed Dec  2 02:43:56 2009
New Revision: 90310

URL: http://llvm.org/viewvc/llvm-project?rev=90310&view=rev
Log:
ASTUnit: Don't create an LLVMContext, it shouldn't be needed.

Modified:
    cfe/trunk/lib/Frontend/ASTUnit.cpp

Modified: cfe/trunk/lib/Frontend/ASTUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/ASTUnit.cpp?rev=90310&r1=90309&r2=90310&view=diff

==============================================================================
--- cfe/trunk/lib/Frontend/ASTUnit.cpp (original)
+++ cfe/trunk/lib/Frontend/ASTUnit.cpp Wed Dec  2 02:43:56 2009
@@ -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 @@
                                              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;
 





More information about the cfe-commits mailing list