rustc: Stub stack map generation machinery
This commit is contained in:
parent
51af43f192
commit
117d21d6c2
5 changed files with 124 additions and 46 deletions
|
@ -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");
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue