[llvm-commits] CVS: llvm/lib/CodeGen/AsmPrinter.cpp

Chris Lattner lattner at cs.uiuc.edu
Fri Feb 24 11:51:12 PST 2006



Changes in directory llvm/lib/CodeGen:

AsmPrinter.cpp updated: 1.53 -> 1.54
---
Log message:

Pass all the flags to the asm printer, not just the # operands.


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

 AsmPrinter.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)


Index: llvm/lib/CodeGen/AsmPrinter.cpp
diff -u llvm/lib/CodeGen/AsmPrinter.cpp:1.53 llvm/lib/CodeGen/AsmPrinter.cpp:1.54
--- llvm/lib/CodeGen/AsmPrinter.cpp:1.53	Thu Feb 23 13:21:04 2006
+++ llvm/lib/CodeGen/AsmPrinter.cpp	Fri Feb 24 13:50:58 2006
@@ -575,8 +575,10 @@
         unsigned OpNo = 1;
         
         // Scan to find the machine operand number for the operand.
-        for (; Val; --Val)
-          OpNo += MI->getOperand(OpNo).getImmedValue()+1;
+        for (; Val; --Val) {
+          unsigned OpFlags = MI->getOperand(OpNo).getImmedValue();
+          OpNo += (OpFlags >> 3) + 1;
+        }
         
         ++OpNo;  // Skip over the ID number.
         






More information about the llvm-commits mailing list