aboutsummaryrefslogtreecommitdiff
path: root/utils/TableGen/CodeEmitterGen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/TableGen/CodeEmitterGen.cpp')
-rw-r--r--utils/TableGen/CodeEmitterGen.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/TableGen/CodeEmitterGen.cpp b/utils/TableGen/CodeEmitterGen.cpp
index a73d2914ff..f27e14ea41 100644
--- a/utils/TableGen/CodeEmitterGen.cpp
+++ b/utils/TableGen/CodeEmitterGen.cpp
@@ -27,7 +27,8 @@ void CodeEmitterGen::createEmitter(std::ostream &o) {
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 @@ void CodeEmitterGen::createEmitter(std::ostream &o) {
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