mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-26 21:20:29 +00:00
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:
parent
eae77de869
commit
ecc7fd3c56
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user