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:
Misha Brukman 2003-06-06 00:27:02 +00:00
parent 8f1222245e
commit f4ef4c881f
2 changed files with 6 additions and 6 deletions

View File

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

View File

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