[vmkit-commits] [vmkit] r80580 - /vmkit/trunk/lib/N3/VMCore/N3.cpp
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Mon Aug 31 01:40:16 PDT 2009
Author: geoffray
Date: Mon Aug 31 03:40:15 2009
New Revision: 80580
URL: http://llvm.org/viewvc/llvm-project?rev=80580&view=rev
Log:
Only use one LLVMContext for now.
Modified:
vmkit/trunk/lib/N3/VMCore/N3.cpp
Modified: vmkit/trunk/lib/N3/VMCore/N3.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/N3/VMCore/N3.cpp?rev=80580&r1=80579&r2=80580&view=diff
==============================================================================
--- vmkit/trunk/lib/N3/VMCore/N3.cpp (original)
+++ vmkit/trunk/lib/N3/VMCore/N3.cpp Mon Aug 31 03:40:15 2009
@@ -66,7 +66,7 @@
std::string str =
mvm::MvmModule::executionEngine->getTargetData()->getStringRepresentation();
- vm->LLVMModule = new llvm::Module("Bootstrap N3", *(new llvm::LLVMContext()));
+ vm->LLVMModule = new llvm::Module("Bootstrap N3", llvm::getGlobalContext());
vm->module = new mvm::MvmModule(vm->LLVMModule);
vm->getLLVMModule()->setDataLayout(str);
vm->protectModule = new mvm::LockNormal();
@@ -90,7 +90,7 @@
std::string str =
mvm::MvmModule::executionEngine->getTargetData()->getStringRepresentation();
- vm->LLVMModule = new llvm::Module("Bootstrap N3", *(new llvm::LLVMContext()));
+ vm->LLVMModule = new llvm::Module("Bootstrap N3", llvm::getGlobalContext());
vm->module = new mvm::MvmModule(vm->LLVMModule);
vm->LLVMModule->setDataLayout(str);
vm->protectModule = new mvm::LockNormal();
More information about the vmkit-commits
mailing list