1
0
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:
Chris Lattner 2003-08-03 22:14:50 +00:00
parent e9a18e0f9f
commit fadbc381f7

View File

@ -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