mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-24 05:23:45 +02:00
Allow registers to specify a custom name
llvm-svn: 7548
This commit is contained in:
parent
e9a18e0f9f
commit
fadbc381f7
@ -188,7 +188,12 @@ void RegisterInfoEmitter::run(std::ostream &OS) {
|
||||
// descriptors now.
|
||||
for (unsigned i = 0, e = Registers.size(); i != e; ++i) {
|
||||
Record *Reg = Registers[i];
|
||||
OS << " { \"" << Reg->getName() << "\",\t";
|
||||
OS << " { \"";
|
||||
if (!Reg->getValueAsString("Name").empty())
|
||||
OS << Reg->getValueAsString("Name");
|
||||
else
|
||||
OS << Reg->getName();
|
||||
OS << "\",\t";
|
||||
if (RegisterAliases.count(Reg))
|
||||
OS << Reg->getName() << "_AliasSet,\t";
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user