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
This commit is contained in:
Misha Brukman 2003-05-28 18:29:10 +00:00
parent eae77de869
commit ecc7fd3c56
2 changed files with 8 additions and 6 deletions

View File

@ -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

View File

@ -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