TargetRegisterDesc::Name field is the same as the abstract register name. There is no need for targets to specify register names in addition to their AsmName's.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53207 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2008-07-07 22:19:41 +00:00
parent 4925567f85
commit b7c3e867a5
2 changed files with 1 additions and 11 deletions

View 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

View 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