projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf03da0
)
change how we invoke the printer. Instead of passing in the MO directly,
author
Chris Lattner
<sabre@nondot.org>
Wed, 11 Aug 2004 02:23:23 +0000
(
02:23
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 11 Aug 2004 02:23:23 +0000
(
02:23
+0000)
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
utils/TableGen/AsmWriterEmitter.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/AsmWriterEmitter.cpp
b/utils/TableGen/AsmWriterEmitter.cpp
index ea81795e0f27eee5bbfe93d32352bfdf96206d97..faecc9fdc6d16666e96c578a50a374856183f33b 100644
(file)
--- 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;
}