LLVM: lib/CodeGen/AsmPrinter/OcamlGCPrinter.cpp File Reference (original) (raw)
OcamlGCPrinter.cpp File Reference
#include "[llvm/ADT/STLExtras.h](STLExtras%5F8h%5Fsource.html)"#include "[llvm/ADT/SmallString.h](SmallString%5F8h%5Fsource.html)"#include "[llvm/ADT/Twine.h](Twine%5F8h%5Fsource.html)"#include "[llvm/CodeGen/AsmPrinter.h](AsmPrinter%5F8h%5Fsource.html)"#include "[llvm/CodeGen/GCMetadata.h](GCMetadata%5F8h%5Fsource.html)"#include "[llvm/CodeGen/GCMetadataPrinter.h](GCMetadataPrinter%5F8h%5Fsource.html)"#include "[llvm/IR/BuiltinGCs.h](BuiltinGCs%5F8h%5Fsource.html)"#include "[llvm/IR/DataLayout.h](DataLayout%5F8h%5Fsource.html)"#include "[llvm/IR/Function.h](IR%5F2Function%5F8h%5Fsource.html)"#include "[llvm/IR/Mangler.h](Mangler%5F8h%5Fsource.html)"#include "[llvm/IR/Module.h](IR%5F2Module%5F8h%5Fsource.html)"#include "[llvm/MC/MCContext.h](MCContext%5F8h%5Fsource.html)"#include "[llvm/MC/MCDirectives.h](MCDirectives%5F8h%5Fsource.html)"#include "[llvm/MC/MCStreamer.h](MCStreamer%5F8h%5Fsource.html)"#include "[llvm/Support/ErrorHandling.h](llvm%5F2Support%5F2ErrorHandling%5F8h%5Fsource.html)"#include "[llvm/Target/TargetLoweringObjectFile.h](TargetLoweringObjectFile%5F8h%5Fsource.html)"#include <cctype>#include <cstddef>#include <cstdint>#include <string>
Go to the source code of this file.
| Functions | |
|---|---|
| static GCMetadataPrinterRegistry::Add< OcamlGCMetadataPrinter > | Y ("ocaml", "ocaml 3.10-compatible collector") |
| static void | EmitCamlGlobal (const Module &M, AsmPrinter &AP, const char *Id) |
Function Documentation
◆ EmitCamlGlobal()
| void EmitCamlGlobal ( const Module & M, AsmPrinter & AP, const char * Id ) | static |
|---|
Definition at line 51 of file OcamlGCPrinter.cpp.
References llvm::find(), llvm::Mangler::getNameWithPrefix(), llvm::MCContext::getOrCreateSymbol(), llvm::MCSA_Global, llvm::AsmPrinter::OutContext, and llvm::AsmPrinter::OutStreamer.
◆ Y()
| GCMetadataPrinterRegistry::Add< OcamlGCMetadataPrinter > Y ( "ocaml" , "ocaml 3.10-compatible collector" ) | static |
|---|