[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineInstr.h

Chris Lattner sabre at nondot.org
Sat Oct 28 11:18:50 PDT 2006



Changes in directory llvm/include/llvm/CodeGen:

MachineInstr.h updated: 1.191 -> 1.192
---
Log message:

add a method for hacking on JTIdx's


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

 MachineInstr.h |    4 ++++
 1 files changed, 4 insertions(+)


Index: llvm/include/llvm/CodeGen/MachineInstr.h
diff -u llvm/include/llvm/CodeGen/MachineInstr.h:1.191 llvm/include/llvm/CodeGen/MachineInstr.h:1.192
--- llvm/include/llvm/CodeGen/MachineInstr.h:1.191	Fri Oct 20 17:44:45 2006
+++ llvm/include/llvm/CodeGen/MachineInstr.h	Sat Oct 28 13:18:36 2006
@@ -206,6 +206,10 @@
     assert(isConstantPoolIndex() && "Wrong MachineOperand accessor");
     contents.immedVal = Idx;
   }
+  void setJumpTableIndex(unsigned Idx) {
+    assert(isJumpTableIndex() && "Wrong MachineOperand accessor");
+    contents.immedVal = Idx;
+  }
   
   /// isIdenticalTo - Return true if this operand is identical to the specified
   /// operand.






More information about the llvm-commits mailing list