[llvm-commits] CVS: llvm/utils/TableGen/AsmWriterEmitter.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Aug 10 19:23:35 PDT 2004



Changes in directory llvm/utils/TableGen:

AsmWriterEmitter.cpp updated: 1.3 -> 1.4
---
Log message:

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.


---
Diffs of the changes:  (+2 -1)

Index: llvm/utils/TableGen/AsmWriterEmitter.cpp
diff -u llvm/utils/TableGen/AsmWriterEmitter.cpp:1.3 llvm/utils/TableGen/AsmWriterEmitter.cpp:1.4
--- llvm/utils/TableGen/AsmWriterEmitter.cpp:1.3	Sun Aug  1 03:55:34 2004
+++ llvm/utils/TableGen/AsmWriterEmitter.cpp	Tue Aug 10 21:23:23 2004
@@ -82,7 +82,8 @@
             --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;
         }






More information about the llvm-commits mailing list