Eliminate now-dead method
authorChris Lattner <sabre@nondot.org>
Thu, 7 Aug 2003 05:39:37 +0000 (05:39 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 7 Aug 2003 05:39:37 +0000 (05:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7667 91177308-0d34-0410-b5e6-96231b3b80d8

support/tools/TableGen/TableGenBackend.cpp
support/tools/TableGen/TableGenBackend.h
utils/TableGen/TableGenBackend.cpp
utils/TableGen/TableGenBackend.h

index c0a67e339243c86483539e24cac8e6053a967d7e..b86ae72ce9dbadea44f9841dec47d843b2e89d0b 100644 (file)
@@ -25,12 +25,3 @@ std::string TableGenBackend::getQualifiedName(Record *R) const {
   return Namespace + "::" + R->getName();
 }
 
-/// getTarget - Return the current instance of the Target class.
-///
-Record *TableGenBackend::getTarget(RecordKeeper &RC) const {
-  std::vector<Record*> Targets = RC.getAllDerivedDefinitions("Target");
-
-  if (Targets.size() != 1)
-    throw std::string("ERROR: Multiple subclasses of Target defined!");
-  return Targets[0];
-}
index bd132039b86154ba31ba4e3fe3006e337ee3ccc7..8dfbaddad160c442138d27fd0985f27fedf74e5a 100644 (file)
@@ -29,9 +29,6 @@ public:   // Useful helper routines...
   /// getQualifiedName - Return the name of the specified record, with a
   /// namespace qualifier if the record contains one.
   std::string getQualifiedName(Record *R) const;
-
-  /// getTarget - Return the current instance of the Target class.
-  Record *getTarget(RecordKeeper &RC) const;
 };
 
 #endif
index c0a67e339243c86483539e24cac8e6053a967d7e..b86ae72ce9dbadea44f9841dec47d843b2e89d0b 100644 (file)
@@ -25,12 +25,3 @@ std::string TableGenBackend::getQualifiedName(Record *R) const {
   return Namespace + "::" + R->getName();
 }
 
-/// getTarget - Return the current instance of the Target class.
-///
-Record *TableGenBackend::getTarget(RecordKeeper &RC) const {
-  std::vector<Record*> Targets = RC.getAllDerivedDefinitions("Target");
-
-  if (Targets.size() != 1)
-    throw std::string("ERROR: Multiple subclasses of Target defined!");
-  return Targets[0];
-}
index bd132039b86154ba31ba4e3fe3006e337ee3ccc7..8dfbaddad160c442138d27fd0985f27fedf74e5a 100644 (file)
@@ -29,9 +29,6 @@ public:   // Useful helper routines...
   /// getQualifiedName - Return the name of the specified record, with a
   /// namespace qualifier if the record contains one.
   std::string getQualifiedName(Record *R) const;
-
-  /// getTarget - Return the current instance of the Target class.
-  Record *getTarget(RecordKeeper &RC) const;
 };
 
 #endif