diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2012-04-09 15:32:41 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2012-04-09 18:06:22 -0700 |
| commit | 59abf93b799a588e07060c7e4efd5f20cdce4293 (patch) | |
| tree | 80e87fb9af4f63469403711fa03561bf2bdf7d5e /src/rustllvm/RustGCStrategy.cpp | |
| parent | 92470336dd89d01f1eab34b45fe97c1a6a33f8d4 (diff) | |
| download | rust-59abf93b799a588e07060c7e4efd5f20cdce4293.tar.gz rust-59abf93b799a588e07060c7e4efd5f20cdce4293.zip | |
llvm: Update llvm to use new gcnoteroot infrastructure
Diffstat (limited to 'src/rustllvm/RustGCStrategy.cpp')
| -rw-r--r-- | src/rustllvm/RustGCStrategy.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/rustllvm/RustGCStrategy.cpp b/src/rustllvm/RustGCStrategy.cpp deleted file mode 100644 index a6645d15a48..00000000000 --- a/src/rustllvm/RustGCStrategy.cpp +++ /dev/null @@ -1,31 +0,0 @@ -//===- RustGCStrategy.cpp - Rust garbage collection strategy ----*- C++ -*-=== -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------=== -// -// This file defines the garbage collection strategy for Rust. -// -//===----------------------------------------------------------------------=== - -#include "llvm/CodeGen/GCs.h" -#include "llvm/CodeGen/GCStrategy.h" - -using namespace llvm; - -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> -RustGCStrategyRegistration("rust", "Rust GC"); - - |
