diff --git a/lib/Target/Target.td b/lib/Target/Target.td index 3f897a5e220..8cc348d1779 100644 --- a/lib/Target/Target.td +++ b/lib/Target/Target.td @@ -26,7 +26,6 @@ class RegisterClass; // Forward def class Register { 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 diff --git a/utils/TableGen/RegisterInfoEmitter.cpp b/utils/TableGen/RegisterInfoEmitter.cpp index 0c5e8442c2a..2870c8038bb 100644 --- a/utils/TableGen/RegisterInfoEmitter.cpp +++ b/utils/TableGen/RegisterInfoEmitter.cpp @@ -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