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.
         



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to