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 | ecc7fd3c56f482ecb4ea42d2cf83e54f73dfb69a (patch) | |
tree | 2c596f5ad41050e4c1ae2111b500dd373b7067da /utils/TableGen/CodeEmitterGen.cpp | |
parent | eae77de8690d9e53a695ae0286e289266716772e (diff) |
Output the opcode name of the instruction being emitted to cerr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6386 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeEmitterGen.cpp')
-rw-r--r-- | utils/TableGen/CodeEmitterGen.cpp | 7 |
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 |