diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 25a7b3fedb6..c20b95cad5d 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -206,6 +206,10 @@ public: 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.