diff options
author | Chris Lattner <sabre@nondot.org> | 2006-10-28 18:18:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-10-28 18:18:36 +0000 |
commit | 4976dfb4b9d6dd3c138736e93b17e31e0f8e9be6 (patch) | |
tree | 53ef04b6a28704d4cdc49cf616f5a742e52f338b | |
parent | a4eb44a285984ec999de632beb5145b099f5416d (diff) | |
download | external_llvm-4976dfb4b9d6dd3c138736e93b17e31e0f8e9be6.zip external_llvm-4976dfb4b9d6dd3c138736e93b17e31e0f8e9be6.tar.gz external_llvm-4976dfb4b9d6dd3c138736e93b17e31e0f8e9be6.tar.bz2 |
add a method for hacking on JTIdx's
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31270 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/CodeGen/MachineInstr.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 25a7b3f..c20b95c 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. |