[vmkit-commits] [vmkit] r81713 - in /vmkit/trunk/lib/Mvm/Compiler: JIT.cpp VmkitGC.cpp
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Sun Sep 13 13:29:53 PDT 2009
Author: geoffray
Date: Sun Sep 13 15:29:53 2009
New Revision: 81713
URL: http://llvm.org/viewvc/llvm-project?rev=81713&view=rev
Log:
Add a function to force linking vmkit's GC.
Modified:
vmkit/trunk/lib/Mvm/Compiler/JIT.cpp
vmkit/trunk/lib/Mvm/Compiler/VmkitGC.cpp
Modified: vmkit/trunk/lib/Mvm/Compiler/JIT.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/Mvm/Compiler/JIT.cpp?rev=81713&r1=81712&r2=81713&view=diff
==============================================================================
--- vmkit/trunk/lib/Mvm/Compiler/JIT.cpp (original)
+++ vmkit/trunk/lib/Mvm/Compiler/JIT.cpp Sun Sep 13 15:29:53 2009
@@ -39,6 +39,7 @@
namespace llvm_runtime {
#include "LLVMRuntime.inc"
}
+ void linkVmkitGC();
}
const char* MvmModule::getHostTriple() {
@@ -48,6 +49,7 @@
void MvmModule::initialise(CodeGenOpt::Level level, Module* M,
TargetMachine* T) {
+ mvm::linkVmkitGC();
llvm_start_multithreaded();
Modified: vmkit/trunk/lib/Mvm/Compiler/VmkitGC.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/Mvm/Compiler/VmkitGC.cpp?rev=81713&r1=81712&r2=81713&view=diff
==============================================================================
--- vmkit/trunk/lib/Mvm/Compiler/VmkitGC.cpp (original)
+++ vmkit/trunk/lib/Mvm/Compiler/VmkitGC.cpp Sun Sep 13 15:29:53 2009
@@ -21,6 +21,10 @@
};
}
+namespace mvm {
+ void linkVmkitGC() { }
+}
+
static GCRegistry::Add<VmkitGC>
X("vmkit", "VMKit GC for JIT-generated functions");
More information about the vmkit-commits
mailing list