aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2008-08-17 19:08:34 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2008-08-17 19:08:34 +0000
commitf1bbd1f3e1067c0494af9527f06dc3da265930ae (patch)
tree7fb68b3ef39542a0d78e3183390a3ba429f3e633 /lib
parenta069940d5217d56525dbb76188a8fa4a8c1f85c4 (diff)
downloadexternal_llvm-f1bbd1f3e1067c0494af9527f06dc3da265930ae.tar.gz
external_llvm-f1bbd1f3e1067c0494af9527f06dc3da265930ae.tar.bz2
external_llvm-f1bbd1f3e1067c0494af9527f06dc3da265930ae.zip
Don't require Registry specializations to define random static variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54902 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/GCMetadataPrinter.cpp11
-rw-r--r--lib/CodeGen/GCStrategy.cpp7
-rw-r--r--lib/Target/TargetMachineRegistry.cpp7
3 files changed, 0 insertions, 25 deletions
diff --git a/lib/CodeGen/GCMetadataPrinter.cpp b/lib/CodeGen/GCMetadataPrinter.cpp
index 07ec0bd035..496450325b 100644
--- a/lib/CodeGen/GCMetadataPrinter.cpp
+++ b/lib/CodeGen/GCMetadataPrinter.cpp
@@ -15,17 +15,6 @@
using namespace llvm;
-// -----------------------------------------------------------------------------
-
-template<> GCMetadataPrinterRegistry::node *GCMetadataPrinterRegistry::Head = 0;
-template<> GCMetadataPrinterRegistry::node *GCMetadataPrinterRegistry::Tail = 0;
-template<> GCMetadataPrinterRegistry::listener *
-GCMetadataPrinterRegistry::ListenerHead = 0;
-template<> GCMetadataPrinterRegistry::listener *
-GCMetadataPrinterRegistry::ListenerTail = 0;
-
-// -----------------------------------------------------------------------------
-
GCMetadataPrinter::GCMetadataPrinter() { }
GCMetadataPrinter::~GCMetadataPrinter() { }
diff --git a/lib/CodeGen/GCStrategy.cpp b/lib/CodeGen/GCStrategy.cpp
index 2666775996..6ca368240d 100644
--- a/lib/CodeGen/GCStrategy.cpp
+++ b/lib/CodeGen/GCStrategy.cpp
@@ -88,13 +88,6 @@ namespace {
// -----------------------------------------------------------------------------
-template<> GCRegistry::node *GCRegistry::Head = 0;
-template<> GCRegistry::node *GCRegistry::Tail = 0;
-template<> GCRegistry::listener *GCRegistry::ListenerHead = 0;
-template<> GCRegistry::listener *GCRegistry::ListenerTail = 0;
-
-// -----------------------------------------------------------------------------
-
GCStrategy::GCStrategy() :
NeededSafePoints(0),
CustomReadBarriers(false),
diff --git a/lib/Target/TargetMachineRegistry.cpp b/lib/Target/TargetMachineRegistry.cpp
index 72e5401422..c1a4777c63 100644
--- a/lib/Target/TargetMachineRegistry.cpp
+++ b/lib/Target/TargetMachineRegistry.cpp
@@ -18,13 +18,6 @@
#include <algorithm>
using namespace llvm;
-template<> Registry<TargetMachine>::node *Registry<TargetMachine>::Head = 0;
-template<> Registry<TargetMachine>::node *Registry<TargetMachine>::Tail = 0;
-template<> Registry<TargetMachine>::listener *Registry<TargetMachine>::
-ListenerHead = 0;
-template<> Registry<TargetMachine>::listener *Registry<TargetMachine>::
-ListenerTail = 0;
-
/// getClosestStaticTargetForModule - Given an LLVM module, pick the best target
/// that is compatible with the module. If no close target can be found, this
/// returns null and sets the Error string to a reason.