[llvm-commits] CVS: llvm/utils/TableGen/CodeEmitterGen.cpp
Misha Brukman
brukman at cs.uiuc.edu
Wed May 28 13:30:01 PDT 2003
Changes in directory llvm/utils/TableGen:
CodeEmitterGen.cpp updated: 1.3 -> 1.4
---
Log message:
Output the opcode name of the instruction being emitted to cerr.
---
Diffs of the changes:
Index: llvm/utils/TableGen/CodeEmitterGen.cpp
diff -u llvm/utils/TableGen/CodeEmitterGen.cpp:1.3 llvm/utils/TableGen/CodeEmitterGen.cpp:1.4
--- llvm/utils/TableGen/CodeEmitterGen.cpp:1.3 Tue May 27 17:29:02 2003
+++ llvm/utils/TableGen/CodeEmitterGen.cpp Wed May 28 13:29:10 2003
@@ -27,7 +27,8 @@
I != E; ++I)
{
Record *R = *I;
- o << " case " << Namespace << R->getName() << ": {\n";
+ o << " case " << Namespace << R->getName() << ": {\n"
+ << " std::cerr << \"Emitting " << R->getName() << "\\n\";\n";
const RecordVal *InstVal = R->getValue("Inst");
Init *InitVal = InstVal->getValue();
@@ -49,9 +50,9 @@
o << "0";
}
}
- o << "\n\n";
+ o << "\n";
- o << " // " << *InstVal << "\n\n";
+ o << " // " << *InstVal << "\n";
o << " Value = " << Value << "U;\n\n";
// Loop over all of the fields in the instruction adding in any
More information about the llvm-commits
mailing list