[llvm-commits] CVS: llvm/utils/TableGen/RegisterInfoEmitter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Aug 4 00:00:04 PDT 2003
Changes in directory llvm/utils/TableGen:
RegisterInfoEmitter.cpp updated: 1.6 -> 1.7
---
Log message:
Allow registers to specify a custom name
---
Diffs of the changes:
Index: llvm/utils/TableGen/RegisterInfoEmitter.cpp
diff -u llvm/utils/TableGen/RegisterInfoEmitter.cpp:1.6 llvm/utils/TableGen/RegisterInfoEmitter.cpp:1.7
--- llvm/utils/TableGen/RegisterInfoEmitter.cpp:1.6 Sun Aug 3 13:17:54 2003
+++ llvm/utils/TableGen/RegisterInfoEmitter.cpp Sun Aug 3 17:14:50 2003
@@ -188,7 +188,12 @@
// 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
More information about the llvm-commits
mailing list