blob: 0da8fecfc4c81009519282d7e0f0f6ae0e525f1d [file] [log] [blame]
//===------- VmkitGC.cpp - GC for JIT-generated functions -----------------===//
//
// The VMKit project
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include "llvm/CodeGen/GCs.h"
#include "llvm/CodeGen/GCStrategy.h"
#include "llvm/Support/Compiler.h"
#include "mvm/JIT.h"
using namespace llvm;
namespace {
class VISIBILITY_HIDDEN VmkitGC : public GCStrategy {
public:
VmkitGC();
};
}
namespace mvm {
void linkVmkitGC() { }
}
static GCRegistry::Add<VmkitGC>
X("vmkit", "VMKit GC for JIT-generated functions");
VmkitGC::VmkitGC() {
NeededSafePoints = 1 << GC::PostCall;
mvm::MvmModule::TheGCStrategy = this;
}