From 59abf93b799a588e07060c7e4efd5f20cdce4293 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Mon, 9 Apr 2012 15:32:41 -0700 Subject: llvm: Update llvm to use new gcnoteroot infrastructure --- src/rustllvm/RustGCStrategy.cpp | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 src/rustllvm/RustGCStrategy.cpp (limited to 'src/rustllvm/RustGCStrategy.cpp') 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 -RustGCStrategyRegistration("rust", "Rust GC"); - - -- cgit 1.4.1-3-g733a5