mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
All debug print statements are now output with the DEBUG() guard to make
output clean so that tests can automatically diff the output. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6643 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8f1222245e
commit
f4ef4c881f
@ -21,14 +21,14 @@ void CodeEmitterGen::createEmitter(std::ostream &o) {
|
||||
o << "unsigned " << ClassName
|
||||
<< "getBinaryCodeForInstr(MachineInstr &MI) {\n"
|
||||
<< " unsigned Value = 0;\n"
|
||||
<< " std::cerr << MI;\n"
|
||||
<< " DEBUG(std::cerr << MI);\n"
|
||||
<< " switch (MI.getOpcode()) {\n";
|
||||
for (std::vector<Record*>::iterator I = Insts.begin(), E = Insts.end();
|
||||
I != E; ++I)
|
||||
{
|
||||
Record *R = *I;
|
||||
o << " case " << Namespace << R->getName() << ": {\n"
|
||||
<< " std::cerr << \"Emitting " << R->getName() << "\\n\";\n";
|
||||
<< " DEBUG(std::cerr << \"Emitting " << R->getName() << "\\n\");\n";
|
||||
|
||||
const RecordVal *InstVal = R->getValue("Inst");
|
||||
Init *InitVal = InstVal->getValue();
|
||||
@ -115,7 +115,7 @@ void CodeEmitterGen::createEmitter(std::ostream &o) {
|
||||
<< " }\n";
|
||||
}
|
||||
o << " default:\n"
|
||||
<< " std::cerr << \"Not supported instr: \" << MI << \"\\n\";\n"
|
||||
<< " DEBUG(std::cerr << \"Not supported instr: \" << MI << \"\\n\");\n"
|
||||
<< " abort();\n"
|
||||
<< " }\n"
|
||||
<< " return Value;\n"
|
||||
|
@ -21,14 +21,14 @@ void CodeEmitterGen::createEmitter(std::ostream &o) {
|
||||
o << "unsigned " << ClassName
|
||||
<< "getBinaryCodeForInstr(MachineInstr &MI) {\n"
|
||||
<< " unsigned Value = 0;\n"
|
||||
<< " std::cerr << MI;\n"
|
||||
<< " DEBUG(std::cerr << MI);\n"
|
||||
<< " switch (MI.getOpcode()) {\n";
|
||||
for (std::vector<Record*>::iterator I = Insts.begin(), E = Insts.end();
|
||||
I != E; ++I)
|
||||
{
|
||||
Record *R = *I;
|
||||
o << " case " << Namespace << R->getName() << ": {\n"
|
||||
<< " std::cerr << \"Emitting " << R->getName() << "\\n\";\n";
|
||||
<< " DEBUG(std::cerr << \"Emitting " << R->getName() << "\\n\");\n";
|
||||
|
||||
const RecordVal *InstVal = R->getValue("Inst");
|
||||
Init *InitVal = InstVal->getValue();
|
||||
@ -115,7 +115,7 @@ void CodeEmitterGen::createEmitter(std::ostream &o) {
|
||||
<< " }\n";
|
||||
}
|
||||
o << " default:\n"
|
||||
<< " std::cerr << \"Not supported instr: \" << MI << \"\\n\";\n"
|
||||
<< " DEBUG(std::cerr << \"Not supported instr: \" << MI << \"\\n\");\n"
|
||||
<< " abort();\n"
|
||||
<< " }\n"
|
||||
<< " return Value;\n"
|
||||
|
Loading…
Reference in New Issue
Block a user