mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 20:59:51 +00:00
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:
parent
4925567f85
commit
b7c3e867a5
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user