[vmkit-commits] [vmkit] r83968 - /vmkit/trunk/lib/JnJVM/Compiler/JnjvmModule.cpp

Nicolas Geoffray nicolas.geoffray at lip6.fr
Tue Oct 13 07:38:25 PDT 2009


Author: geoffray
Date: Tue Oct 13 09:38:25 2009
New Revision: 83968

URL: http://llvm.org/viewvc/llvm-project?rev=83968&view=rev
Log:
Load the contents of LLVMRuntime.inc only if an equivalent was not loaded previoulsy.


Modified:
    vmkit/trunk/lib/JnJVM/Compiler/JnjvmModule.cpp

Modified: vmkit/trunk/lib/JnJVM/Compiler/JnjvmModule.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/Compiler/JnjvmModule.cpp?rev=83968&r1=83967&r2=83968&view=diff

==============================================================================
--- vmkit/trunk/lib/JnJVM/Compiler/JnjvmModule.cpp (original)
+++ vmkit/trunk/lib/JnJVM/Compiler/JnjvmModule.cpp Tue Oct 13 09:38:25 2009
@@ -100,7 +100,9 @@
 
 void JnjvmModule::initialise() {
   Module* module = globalModule;
-  jnjvm::llvm_runtime::makeLLVMModuleContents(module);
+  
+  if (!module->getTypeByName("JavaThread"))
+    jnjvm::llvm_runtime::makeLLVMModuleContents(module);
 
   VTType = PointerType::getUnqual(module->getTypeByName("VT"));
 





More information about the vmkit-commits mailing list