diff options
author | Yiannis Tsiouris <gtsiour@softlab.ntua.gr> | 2013-03-25 13:47:46 +0000 |
---|---|---|
committer | Yiannis Tsiouris <gtsiour@softlab.ntua.gr> | 2013-03-25 13:47:46 +0000 |
commit | 477de3a7859104d7c41a36628169e13e524e980a (patch) | |
tree | 378b9b09722a63c6b459e1a7058c67612c2752f8 /include | |
parent | 2269c56a3ce38e4440c3ed411e5ddd17cbb394c4 (diff) | |
download | external_llvm-477de3a7859104d7c41a36628169e13e524e980a.zip external_llvm-477de3a7859104d7c41a36628169e13e524e980a.tar.gz external_llvm-477de3a7859104d7c41a36628169e13e524e980a.tar.bz2 |
Add a GC plugin for Erlang
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177867 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/GCs.h | 6 | ||||
-rw-r--r-- | include/llvm/CodeGen/LinkAllAsmWriterComponents.h | 1 | ||||
-rw-r--r-- | include/llvm/CodeGen/LinkAllCodegenComponents.h | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/GCs.h b/include/llvm/CodeGen/GCs.h index c407b61..456d2dc 100644 --- a/include/llvm/CodeGen/GCs.h +++ b/include/llvm/CodeGen/GCs.h @@ -26,6 +26,12 @@ namespace llvm { /// Creates an ocaml-compatible metadata printer. void linkOcamlGCPrinter(); + + /// Creates an erlang-compatible garbage collector. + void linkErlangGC(); + + /// Creates an erlang-compatible metadata printer. + void linkErlangGCPrinter(); /// Creates a shadow stack garbage collector. This collector requires no code /// generator support. diff --git a/include/llvm/CodeGen/LinkAllAsmWriterComponents.h b/include/llvm/CodeGen/LinkAllAsmWriterComponents.h index 7d1b1fe..c3046da 100644 --- a/include/llvm/CodeGen/LinkAllAsmWriterComponents.h +++ b/include/llvm/CodeGen/LinkAllAsmWriterComponents.h @@ -29,6 +29,7 @@ namespace { return; llvm::linkOcamlGCPrinter(); + llvm::linkErlangGCPrinter(); } } ForceAsmWriterLinking; // Force link by creating a global definition. diff --git a/include/llvm/CodeGen/LinkAllCodegenComponents.h b/include/llvm/CodeGen/LinkAllCodegenComponents.h index 2145eb8..916c0f2 100644 --- a/include/llvm/CodeGen/LinkAllCodegenComponents.h +++ b/include/llvm/CodeGen/LinkAllCodegenComponents.h @@ -37,6 +37,7 @@ namespace { (void) llvm::createDefaultPBQPRegisterAllocator(); llvm::linkOcamlGC(); + llvm::linkErlangGC(); llvm::linkShadowStackGC(); (void) llvm::createBURRListDAGScheduler(NULL, llvm::CodeGenOpt::Default); |