[vmkit-commits] [vmkit] r82139 - in /vmkit/trunk: include/mvm/JIT.h lib/Mvm/Compiler/JIT.cpp

Nicolas Geoffray nicolas.geoffray at lip6.fr
Thu Sep 17 02:29:22 PDT 2009


Author: geoffray
Date: Thu Sep 17 04:29:21 2009
New Revision: 82139

URL: http://llvm.org/viewvc/llvm-project?rev=82139&view=rev
Log:
Add a GC strategy object to the list of global variables for JIT compilation.


Modified:
    vmkit/trunk/include/mvm/JIT.h
    vmkit/trunk/lib/Mvm/Compiler/JIT.cpp

Modified: vmkit/trunk/include/mvm/JIT.h
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/include/mvm/JIT.h?rev=82139&r1=82138&r2=82139&view=diff

==============================================================================
--- vmkit/trunk/include/mvm/JIT.h (original)
+++ vmkit/trunk/include/mvm/JIT.h Thu Sep 17 04:29:21 2009
@@ -26,6 +26,7 @@
   class ExistingModuleProvider;
   class Function;
   class FunctionPassManager;
+  class GCStrategy;
   class LLVMContext;
   class Module;
   class ModuleProvider;
@@ -169,6 +170,7 @@
    static const llvm::Type* pointerSizeType;
 
    static llvm::ExecutionEngine* executionEngine;
+   static llvm::GCStrategy* GC;
    static mvm::LockRecursive protectEngine;
    static llvm::Module *globalModule;
    static llvm::ExistingModuleProvider *globalModuleProvider;

Modified: vmkit/trunk/lib/Mvm/Compiler/JIT.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/Mvm/Compiler/JIT.cpp?rev=82139&r1=82138&r2=82139&view=diff

==============================================================================
--- vmkit/trunk/lib/Mvm/Compiler/JIT.cpp (original)
+++ vmkit/trunk/lib/Mvm/Compiler/JIT.cpp Thu Sep 17 04:29:21 2009
@@ -19,6 +19,7 @@
 #include <llvm/Type.h>
 #include <llvm/Analysis/LoopPass.h>
 #include <llvm/Analysis/Verifier.h>
+#include <llvm/CodeGen/GCStrategy.h>
 #include <llvm/Config/config.h>
 #include <llvm/ExecutionEngine/ExecutionEngine.h>
 #include <llvm/Support/MutexGuard.h>
@@ -229,6 +230,7 @@
 const llvm::Type* MvmModule::arrayPtrType;
 
 const llvm::TargetData* MvmModule::TheTargetData;
+llvm::GCStrategy* MvmModule::GC;
 llvm::Module *MvmModule::globalModule;
 llvm::ExistingModuleProvider *MvmModule::globalModuleProvider;
 llvm::FunctionPassManager* MvmModule::globalFunctionPasses;





More information about the vmkit-commits mailing list