[vmkit-commits] [vmkit] r82141 - /vmkit/trunk/lib/Mvm/Compiler/VmkitGC.cpp

Nicolas Geoffray nicolas.geoffray at lip6.fr
Thu Sep 17 02:31:42 PDT 2009


Author: geoffray
Date: Thu Sep 17 04:31:42 2009
New Revision: 82141

URL: http://llvm.org/viewvc/llvm-project?rev=82141&view=rev
Log:
Set the mvm::MvmModule::GC strategy when it's created.


Modified:
    vmkit/trunk/lib/Mvm/Compiler/VmkitGC.cpp

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

==============================================================================
--- vmkit/trunk/lib/Mvm/Compiler/VmkitGC.cpp (original)
+++ vmkit/trunk/lib/Mvm/Compiler/VmkitGC.cpp Thu Sep 17 04:31:42 2009
@@ -12,6 +12,8 @@
 #include "llvm/CodeGen/GCStrategy.h"
 #include "llvm/Support/Compiler.h"
 
+#include "mvm/JIT.h"
+
 using namespace llvm;
 
 namespace {
@@ -30,4 +32,5 @@
 
 VmkitGC::VmkitGC() {
   NeededSafePoints = 1 << GC::PostCall;
+  mvm::MvmModule::GC = this;
 }





More information about the vmkit-commits mailing list