From 31955002975b5ae9e4130d0fbeb954bbeb0f95f0 Mon Sep 17 00:00:00 2001 From: Philip Reames Date: Tue, 19 Jan 2016 03:57:18 +0000 Subject: [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 --- llvm/lib/CodeGen/OcamlGC.cpp | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 llvm/lib/CodeGen/OcamlGC.cpp (limited to 'llvm/lib/CodeGen/OcamlGC.cpp') diff --git a/llvm/lib/CodeGen/OcamlGC.cpp b/llvm/lib/CodeGen/OcamlGC.cpp deleted file mode 100644 index 17654a6ac3a..00000000000 --- a/llvm/lib/CodeGen/OcamlGC.cpp +++ /dev/null @@ -1,36 +0,0 @@ -//===-- OcamlGC.cpp - Ocaml frametable GC strategy ------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This file implements lowering for the llvm.gc* intrinsics compatible with -// Objective Caml 3.10.0, which uses a liveness-accurate static stack map. -// -// The frametable emitter is in OcamlGCPrinter.cpp. -// -//===----------------------------------------------------------------------===// - -#include "llvm/CodeGen/GCs.h" -#include "llvm/CodeGen/GCStrategy.h" - -using namespace llvm; - -namespace { -class OcamlGC : public GCStrategy { -public: - OcamlGC(); -}; -} - -static GCRegistry::Add X("ocaml", "ocaml 3.10-compatible GC"); - -void llvm::linkOcamlGC() {} - -OcamlGC::OcamlGC() { - NeededSafePoints = 1 << GC::PostCall; - UsesMetadata = true; -} -- cgit v1.2.3