[cfe-commits] r96313 - /cfe/trunk/tools/driver/cc1_main.cpp

Daniel Dunbar daniel at zuster.org
Mon Feb 15 17:54:33 PST 2010


Author: ddunbar
Date: Mon Feb 15 19:54:33 2010
New Revision: 96313

URL: http://llvm.org/viewvc/llvm-project?rev=96313&view=rev
Log:
Switch clang to use its own LLVMContext (not the global one).

Modified:
    cfe/trunk/tools/driver/cc1_main.cpp

Modified: cfe/trunk/tools/driver/cc1_main.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/cc1_main.cpp?rev=96313&r1=96312&r2=96313&view=diff

==============================================================================
--- cfe/trunk/tools/driver/cc1_main.cpp (original)
+++ cfe/trunk/tools/driver/cc1_main.cpp Mon Feb 15 19:54:33 2010
@@ -195,7 +195,7 @@
 
 int cc1_main(const char **ArgBegin, const char **ArgEnd,
              const char *Argv0, void *MainAddr) {
-  CompilerInstance Clang(&llvm::getGlobalContext(), false);
+  CompilerInstance Clang(new llvm::LLVMContext, true);
 
   // Run clang -cc1 test.
   if (ArgBegin != ArgEnd && llvm::StringRef(ArgBegin[0]) == "-cc1test") {





More information about the cfe-commits mailing list