blob: a04598059c83e8f5b15a79ca1f98cdf8e9e4401b [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 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;
}