[llvm] r346569 - [GC] Simplify linking of GC builtin GC strategies
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 9 15:56:21 PST 2018
Author: reames
Date: Fri Nov 9 15:56:21 2018
New Revision: 346569
URL: http://llvm.org/viewvc/llvm-project?rev=346569&view=rev
Log:
[GC] Simplify linking of GC builtin GC strategies
Modified:
llvm/trunk/include/llvm/CodeGen/GCs.h
llvm/trunk/include/llvm/CodeGen/LinkAllCodegenComponents.h
llvm/trunk/lib/CodeGen/BuiltinGCs.cpp
Modified: llvm/trunk/include/llvm/CodeGen/GCs.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/GCs.h?rev=346569&r1=346568&r2=346569&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/GCs.h (original)
+++ llvm/trunk/include/llvm/CodeGen/GCs.h Fri Nov 9 15:56:21 2018
@@ -15,32 +15,18 @@
#define LLVM_CODEGEN_GCS_H
namespace llvm {
-class GCStrategy;
-class GCMetadataPrinter;
/// FIXME: Collector instances are not useful on their own. These no longer
/// serve any purpose except to link in the plugins.
-/// Creates a CoreCLR-compatible garbage collector.
-void linkCoreCLRGC();
-
-/// Creates an ocaml-compatible garbage collector.
-void linkOcamlGC();
+/// Ensure the definition of the builtin GCs gets linked in
+void linkAllBuiltinGCs();
/// 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.
-void linkShadowStackGC();
-
-void linkStatepointExampleGC();
}
#endif
Modified: llvm/trunk/include/llvm/CodeGen/LinkAllCodegenComponents.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/LinkAllCodegenComponents.h?rev=346569&r1=346568&r2=346569&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/LinkAllCodegenComponents.h (original)
+++ llvm/trunk/include/llvm/CodeGen/LinkAllCodegenComponents.h Fri Nov 9 15:56:21 2018
@@ -36,11 +36,7 @@ namespace {
(void) llvm::createGreedyRegisterAllocator();
(void) llvm::createDefaultPBQPRegisterAllocator();
- llvm::linkCoreCLRGC();
- llvm::linkOcamlGC();
- llvm::linkErlangGC();
- llvm::linkShadowStackGC();
- llvm::linkStatepointExampleGC();
+ llvm::linkAllBuiltinGCs();
(void) llvm::createBURRListDAGScheduler(nullptr,
llvm::CodeGenOpt::Default);
Modified: llvm/trunk/lib/CodeGen/BuiltinGCs.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/BuiltinGCs.cpp?rev=346569&r1=346568&r2=346569&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/BuiltinGCs.cpp (original)
+++ llvm/trunk/lib/CodeGen/BuiltinGCs.cpp Fri Nov 9 15:56:21 2018
@@ -136,9 +136,5 @@ static GCRegistry::Add<StatepointGC> D("
"an example strategy for statepoint");
static GCRegistry::Add<CoreCLRGC> E("coreclr", "CoreCLR-compatible GC");
-// Provide hooks to ensure the containing library is fully loaded.
-void llvm::linkErlangGC() {}
-void llvm::linkOcamlGC() {}
-void llvm::linkShadowStackGC() {}
-void llvm::linkStatepointExampleGC() {}
-void llvm::linkCoreCLRGC() {}
+// Provide hook to ensure the containing library is fully loaded.
+void llvm::linkAllBuiltinGCs() {}
More information about the llvm-commits
mailing list