summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/lib/CodeGen/ErlangGC.cpp
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2017-01-14 20:03:33 +0000
committerpatrick <patrick@openbsd.org>2017-01-14 20:03:33 +0000
commitdc7ed217e9eb98649b8c5ed4495b0a3dc1b7ff43 (patch)
treec79aa107474a358f6af1132e6d94161c1e33a918 /gnu/llvm/lib/CodeGen/ErlangGC.cpp
parentImport LLVM 3.9.1 including clang and lld. (diff)
downloadwireguard-openbsd-dc7ed217e9eb98649b8c5ed4495b0a3dc1b7ff43.tar.xz
wireguard-openbsd-dc7ed217e9eb98649b8c5ed4495b0a3dc1b7ff43.zip
Merge LLVM 3.9.1
Diffstat (limited to 'gnu/llvm/lib/CodeGen/ErlangGC.cpp')
-rw-r--r--gnu/llvm/lib/CodeGen/ErlangGC.cpp46
1 files changed, 0 insertions, 46 deletions
diff --git a/gnu/llvm/lib/CodeGen/ErlangGC.cpp b/gnu/llvm/lib/CodeGen/ErlangGC.cpp
deleted file mode 100644
index 024946d1436..00000000000
--- a/gnu/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;
-}