change how we invoke the printer. Instead of passing in the MO directly,

pass in the MI, operand number, and the type of the operand.

llvm-svn: 15645
This commit is contained in:
Chris Lattner 2004-08-11 02:23:23 +00:00
parent 3bc477a237
commit c1904dd38f
1 changed files with 2 additions and 1 deletions

View File

@ -82,7 +82,8 @@ void AsmWriterEmitter::run(std::ostream &O) {
--OpNo;
}
O << "; printOperand(MI->getOperand(" << OpNo << "), MVT::"
O << "; " << I->second.OperandList[OpNo].PrinterMethodName
<< "(MI, " << I->second.OperandList[OpNo].MIOperandNo << ", MVT::"
<< getName(I->second.OperandList[OpNo].Ty) << "); O ";
LastEmitted = VarEnd;
}