clean up -debug output.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92343 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2009-12-31 07:17:37 +00:00
parent 7e54d5b156
commit 1befe643b2

View File

@ -61,10 +61,11 @@ namespace {
static void PrintOps(Instruction *I, const std::vector<ValueEntry> &Ops) {
Module *M = I->getParent()->getParent()->getParent();
errs() << Instruction::getOpcodeName(I->getOpcode()) << " "
<< *Ops[0].Op->getType();
<< *Ops[0].Op->getType() << '\t';
for (unsigned i = 0, e = Ops.size(); i != e; ++i) {
WriteAsOperand(errs() << " ", Ops[i].Op, false, M);
errs() << "," << Ops[i].Rank;
errs() << "[ ";
WriteAsOperand(errs(), Ops[i].Op, false, M);
errs() << ", #" << Ops[i].Rank << "] ";
}
}
#endif