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 | |
parent | eae77de8690d9e53a695ae0286e289266716772e (diff) | |
download | external_llvm-ecc7fd3c56f482ecb4ea42d2cf83e54f73dfb69a.zip external_llvm-ecc7fd3c56f482ecb4ea42d2cf83e54f73dfb69a.tar.gz external_llvm-ecc7fd3c56f482ecb4ea42d2cf83e54f73dfb69a.tar.bz2 |
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
-rw-r--r-- | support/tools/TableGen/CodeEmitterGen.cpp | 7 | ||||
-rw-r--r-- | utils/TableGen/CodeEmitterGen.cpp | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/support/tools/TableGen/CodeEmitterGen.cpp b/support/tools/TableGen/CodeEmitterGen.cpp index a73d291..f27e14e 100644 --- a/support/tools/TableGen/CodeEmitterGen.cpp +++ b/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 diff --git a/utils/TableGen/CodeEmitterGen.cpp b/utils/TableGen/CodeEmitterGen.cpp index a73d291..f27e14e 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 |