mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-23 19:59:57 +00:00
f5a86f45e7
VISIBILITY_HIDDEN removal. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85043 91177308-0d34-0410-b5e6-96231b3b80d8
38 lines
999 B
C++
38 lines
999 B
C++
//===-- 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<OcamlGC>
|
|
X("ocaml", "ocaml 3.10-compatible GC");
|
|
|
|
void llvm::linkOcamlGC() { }
|
|
|
|
OcamlGC::OcamlGC() {
|
|
NeededSafePoints = 1 << GC::PostCall;
|
|
UsesMetadata = true;
|
|
}
|