rustc: Stub stack map generation machinery

This commit is contained in:
Patrick Walton 2011-08-17 19:11:01 -07:00
parent 51af43f192
commit 117d21d6c2
5 changed files with 124 additions and 46 deletions

View file

@ -16,19 +16,16 @@
using namespace llvm;
namespace {
class RustGCStrategy : public GCStrategy {
public:
RustGCStrategy();
};
}
class RustGCStrategy : public GCStrategy {
public:
RustGCStrategy() {
NeededSafePoints = 1 << GC::PostCall;
UsesMetadata = true;
InitRoots = false; // LLVM crashes with this on due to bitcasts.
}
};
static GCRegistry::Add<RustGCStrategy>
X("rust", "Rust GC");
RustGCStrategy::RustGCStrategy() {
NeededSafePoints = 1 << GC::PostCall;
UsesMetadata = true;
}
RustGCStrategyRegistration("rust", "Rust GC");