TargetRegisterDesc::Name field is the same as the abstract register name. There is...
authorEvan Cheng <evan.cheng@apple.com>
Mon, 7 Jul 2008 22:19:41 +0000 (22:19 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 7 Jul 2008 22:19:41 +0000 (22:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53207 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Target.td
utils/TableGen/RegisterInfoEmitter.cpp

index 3f897a5e220a6fb10009460045a394aecf924359..8cc348d177952ca7ae5a2c437fcbafc627f0929a 100644 (file)
@@ -26,7 +26,6 @@ class RegisterClass; // Forward def
 class Register<string n> {
   string Namespace = "";
   string AsmName = n;
-  string Name = n;
 
   // SpillSize - If this value is set to a non-zero value, it is the size in
   // bits of the spill slot required to hold this register.  If this value is
index 0c5e8442c2aa114d9f935c62cf542ef9a25d1a22..2870c8038bb8282d0fe7f9b510883d9f598af0d7 100644 (file)
@@ -606,16 +606,7 @@ void RegisterInfoEmitter::run(std::ostream &OS) {
     else
       OS << Reg.getName();
     OS << "\",\t\"";
-    if (!Reg.TheDef->getValueAsString("Name").empty()) {
-      OS << Reg.TheDef->getValueAsString("Name");
-    } else {
-      // Default to "name".
-      if (!Reg.TheDef->getValueAsString("AsmName").empty())
-        OS << Reg.TheDef->getValueAsString("AsmName");
-      else
-        OS << Reg.getName();
-    }
-    OS << "\",\t";
+    OS << Reg.getName() << "\",\t";
     if (RegisterAliases.count(Reg.TheDef))
       OS << Reg.getName() << "_AliasSet,\t";
     else