diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2003-05-28 18:29:10 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-05-28 18:29:10 +0000 |
commit | 71b9de7789b9e826335b9421b6d65a9f4876b0fd (patch) | |
tree | 1292edc40a7f521a9e3f5f46175121580bc77186 /llvm/support/tools/TableGen/CodeEmitterGen.cpp | |
parent | df88104198319a287b8ef426453a95bcd0cb2e90 (diff) | |
download | bcm5719-llvm-71b9de7789b9e826335b9421b6d65a9f4876b0fd.tar.gz bcm5719-llvm-71b9de7789b9e826335b9421b6d65a9f4876b0fd.zip |
Output the opcode name of the instruction being emitted to cerr.
llvm-svn: 6386
Diffstat (limited to 'llvm/support/tools/TableGen/CodeEmitterGen.cpp')
-rw-r--r-- | llvm/support/tools/TableGen/CodeEmitterGen.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/support/tools/TableGen/CodeEmitterGen.cpp b/llvm/support/tools/TableGen/CodeEmitterGen.cpp index a73d2914ff6..f27e14ea419 100644 --- a/llvm/support/tools/TableGen/CodeEmitterGen.cpp +++ b/llvm/support/tools/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 |