[llvm-commits] CVS: llvm/utils/TableGen/RegisterInfoEmitter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed May 24 10:04:35 PDT 2006
Changes in directory llvm/utils/TableGen:
RegisterInfoEmitter.cpp updated: 1.43 -> 1.44
---
Log message:
Patches to make the LLVM sources more -pedantic clean. Patch provided
by Anton Korobeynikov! This is a step towards closing PR786: http://llvm.cs.uiuc.edu/PR786 .
---
Diffs of the changes: (+1 -1)
RegisterInfoEmitter.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/utils/TableGen/RegisterInfoEmitter.cpp
diff -u llvm/utils/TableGen/RegisterInfoEmitter.cpp:1.43 llvm/utils/TableGen/RegisterInfoEmitter.cpp:1.44
--- llvm/utils/TableGen/RegisterInfoEmitter.cpp:1.43 Wed May 17 19:08:46 2006
+++ llvm/utils/TableGen/RegisterInfoEmitter.cpp Wed May 24 12:04:05 2006
@@ -37,7 +37,7 @@
OS << " enum {\n NoRegister,\n";
for (unsigned i = 0, e = Registers.size(); i != e; ++i)
- OS << " " << Registers[i].getName() << ", \t// " << i+1 << "\n";
+ OS << " " << Registers[i].getName() << (i != (e-1) ? ", \t// " : " \t// ") << i+1 << "\n";
OS << " };\n";
if (!Namespace.empty())
More information about the llvm-commits
mailing list