aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/Collectors.cpp
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2007-09-27 19:34:27 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2007-09-27 19:34:27 +0000
commitd9900c9442d48b73bc5bb6132abcb9bc0257c714 (patch)
treefcfdb6ad598b55a5c123521fddfaee86f7839554 /lib/CodeGen/Collectors.cpp
parent326e24fff011f9f5af62bfd2dae964dcd4fd6792 (diff)
downloadexternal_llvm-d9900c9442d48b73bc5bb6132abcb9bc0257c714.zip
external_llvm-d9900c9442d48b73bc5bb6132abcb9bc0257c714.tar.gz
external_llvm-d9900c9442d48b73bc5bb6132abcb9bc0257c714.tar.bz2
My previous Registry.h header, as well as Collectors.h, which is the
registry for dynamically-loaded garbage collection compiler plugins. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42415 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/Collectors.cpp')
-rw-r--r--lib/CodeGen/Collectors.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/CodeGen/Collectors.cpp b/lib/CodeGen/Collectors.cpp
new file mode 100644
index 0000000..feeebd5
--- /dev/null
+++ b/lib/CodeGen/Collectors.cpp
@@ -0,0 +1,21 @@
+//===-- Collectors.cpp - Garbage collector registry -----------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file was developed by Gordon Henriksen and is distributed under
+// the University of Illinois Open Source License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file defines the static data members of the CollectorRegistry class.
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm/CodeGen/Collectors.h"
+
+using namespace llvm;
+
+template<> CollectorRegistry::node *CollectorRegistry::Head = 0;
+template<> CollectorRegistry::node *CollectorRegistry::Tail = 0;
+template<> CollectorRegistry::listener *CollectorRegistry::ListenerHead = 0;
+template<> CollectorRegistry::listener *CollectorRegistry::ListenerTail = 0;