about summary refs log tree commit diff
path: root/src/rustllvm/RustGCStrategy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rustllvm/RustGCStrategy.cpp')
-rw-r--r--src/rustllvm/RustGCStrategy.cpp31
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");
-
-