Use a better name for the label relocations while emitting them for Jump Tables
[oota-llvm.git] / include / llvm / Target / TargetMachineRegistry.h
index 6b78a58ab0e970fdf1e7be509d0bac7fb1810383..a1b13d360d0b05f696211ccf7d0d19a50200e38c 100644 (file)
@@ -18,7 +18,6 @@
 #define LLVM_TARGET_TARGETMACHINEREGISTRY_H
 
 #include "llvm/Module.h"
-#include "llvm/Support/Registry.h"
 #include "llvm/Target/TargetRegistry.h"
 
 namespace llvm {
@@ -26,29 +25,6 @@ namespace llvm {
   class Target;
   class TargetMachine;
 
-  struct TargetMachineRegistryEntry {
-    const Target &TheTarget;
-    const char *Name;
-    const char *ShortDesc;
-
-  public:
-    TargetMachineRegistryEntry(const Target &T, const char *N, const char *SD)
-      : TheTarget(T), Name(N), ShortDesc(SD) {}
-  };
-
-  template<>
-  class RegistryTraits<TargetMachine> {
-  public:
-    typedef TargetMachineRegistryEntry entry;
-
-    static const char *nameof(const entry &Entry) { return Entry.Name; }
-    static const char *descof(const entry &Entry) { return Entry.ShortDesc; }
-  };
-
-  struct TargetMachineRegistry : public Registry<TargetMachine> {
-
-  };
-
   //===--------------------------------------------------------------------===//
   /// RegisterTarget - This class is used to make targets automatically register
   /// themselves with the tools they are linked with.  Targets should define an
@@ -63,16 +39,11 @@ namespace llvm {
 
   template<class TargetMachineImpl>
   struct RegisterTarget {
-    RegisterTarget(Target &T, const char *Name, const char *ShortDesc)
-      : Entry(T, Name, ShortDesc),
-        Node(Entry) {
+    RegisterTarget(Target &T, const char *Name, const char *ShortDesc) {
       TargetRegistry::RegisterTargetMachine(T, &Allocator);
     }
 
   private:
-    TargetMachineRegistry::entry Entry;
-    TargetMachineRegistry::node Node;
-
     static TargetMachine *Allocator(const Target &T, const Module &M, 
                                     const std::string &FS) {
       return new TargetMachineImpl(T, M, FS);