From c1904dd38f861f55d32d990d5a34196085ddd5e2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 11 Aug 2004 02:23:23 +0000 Subject: [PATCH] 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 --- llvm/utils/TableGen/AsmWriterEmitter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/utils/TableGen/AsmWriterEmitter.cpp b/llvm/utils/TableGen/AsmWriterEmitter.cpp index ea81795e0f27..faecc9fdc6d1 100644 --- a/llvm/utils/TableGen/AsmWriterEmitter.cpp +++ b/llvm/utils/TableGen/AsmWriterEmitter.cpp @@ -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; }