[llvm-commits] CVS: llvm/utils/TableGen/TableGen.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Jul 31 23:48:01 PDT 2003
Changes in directory llvm/utils/TableGen:
TableGen.cpp updated: 1.11 -> 1.12
---
Log message:
Dead code elimination
---
Diffs of the changes:
Index: llvm/utils/TableGen/TableGen.cpp
diff -u llvm/utils/TableGen/TableGen.cpp:1.11 llvm/utils/TableGen/TableGen.cpp:1.12
--- llvm/utils/TableGen/TableGen.cpp:1.11 Thu Jul 31 23:39:05 2003
+++ llvm/utils/TableGen/TableGen.cpp Thu Jul 31 23:47:20 2003
@@ -402,6 +402,9 @@
try {
switch (Action) {
+ case PrintRecords:
+ *Out << Records; // No argument, dump all contents
+ break;
case Parse:
ParseMachineCode();
break;
@@ -414,18 +417,8 @@
case GenRegisterHeader:
RegisterInfoEmitter(Records).runHeader(*Out);
break;
- case PrintRecords:
- *Out << Records; // No argument, dump all contents
- break;
case PrintEnums:
- Record *R = Records.getClass(Class);
- if (R == 0) {
- std::cerr << "Cannot find class '" << Class << "'!\n";
- abort();
- }
-
std::vector<Record*> Recs = Records.getAllDerivedDefinitions(Class);
-
for (unsigned i = 0, e = Recs.size(); i != e; ++i)
*Out << Recs[i] << ", ";
*Out << "\n";
More information about the llvm-commits
mailing list