aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-08-11 02:23:23 +0000
committerChris Lattner <sabre@nondot.org>2004-08-11 02:23:23 +0000
commit1caef2c0a9df447d6bdcba329675e52c51f3642b (patch)
tree604c079a573195373b242c48c90901c6b7f83223
parentcf03da0ce913267c4971534e8792297e06535a4e (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15645 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--utils/TableGen/AsmWriterEmitter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/TableGen/AsmWriterEmitter.cpp b/utils/TableGen/AsmWriterEmitter.cpp
index ea81795e0f..faecc9fdc6 100644
--- a/utils/TableGen/AsmWriterEmitter.cpp
+++ b/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;
}