summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/ErlangGC.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2016-01-19 03:57:18 +0000
committerPhilip Reames <listmail@philipreames.com>2016-01-19 03:57:18 +0000
commit31955002975b5ae9e4130d0fbeb954bbeb0f95f0 (patch)
tree3e04060270c70ddd2ec9d4dc2062006ea8174940 /llvm/lib/CodeGen/ErlangGC.cpp
parente708747129f89eb8ff4500f6284c420c63f77302 (diff)
downloadbcm5719-llvm-31955002975b5ae9e4130d0fbeb954bbeb0f95f0.tar.gz
bcm5719-llvm-31955002975b5ae9e4130d0fbeb954bbeb0f95f0.zip
[GC] Consolidate all built in GCs into a single file [NFC]
Combine a bunch of small files into a single, still rather small, file. The primary purpose of this is to get all of the static initializers into a single file so as to have a well defined order of initialization. llvm-svn: 258109
Diffstat (limited to 'llvm/lib/CodeGen/ErlangGC.cpp')
-rw-r--r--llvm/lib/CodeGen/ErlangGC.cpp46
1 files changed, 0 insertions, 46 deletions
diff --git a/llvm/lib/CodeGen/ErlangGC.cpp b/llvm/lib/CodeGen/ErlangGC.cpp
deleted file mode 100644
index 024946d1436..00000000000
--- a/llvm/lib/CodeGen/ErlangGC.cpp
+++ /dev/null
@@ -1,46 +0,0 @@
-//===-- ErlangGC.cpp - Erlang/OTP GC 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 implements the Erlang/OTP runtime-compatible garbage collector
-// (e.g. defines safe points, root initialization etc.)
-//
-// The frametable emitter is in ErlangGCPrinter.cpp.
-//
-//===----------------------------------------------------------------------===//
-
-#include "llvm/CodeGen/GCs.h"
-#include "llvm/CodeGen/GCStrategy.h"
-#include "llvm/CodeGen/MachineInstrBuilder.h"
-#include "llvm/MC/MCContext.h"
-#include "llvm/MC/MCSymbol.h"
-#include "llvm/Target/TargetInstrInfo.h"
-#include "llvm/Target/TargetMachine.h"
-#include "llvm/Target/TargetSubtargetInfo.h"
-
-using namespace llvm;
-
-namespace {
-
-class ErlangGC : public GCStrategy {
-public:
- ErlangGC();
-};
-}
-
-static GCRegistry::Add<ErlangGC> X("erlang",
- "erlang-compatible garbage collector");
-
-void llvm::linkErlangGC() {}
-
-ErlangGC::ErlangGC() {
- InitRoots = false;
- NeededSafePoints = 1 << GC::PostCall;
- UsesMetadata = true;
- CustomRoots = false;
-}
OpenPOWER on IntegriCloud