MakeMIInst() should handle jump table index operands.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27955 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2006-04-24 05:37:35 +00:00
parent 57a6c135f2
commit 49bca8536c

View File

@ -151,6 +151,9 @@ static MachineInstr *MakeMIInst(unsigned Opcode, unsigned FrameIndex,
return addFrameReference(BuildMI(Opcode, 5), FrameIndex)
.addGlobalAddress(MI->getOperand(1).getGlobal(),
false, MI->getOperand(1).getOffset());
else if (MI->getOperand(1).isJumpTableIndex())
return addFrameReference(BuildMI(Opcode, 5), FrameIndex)
.addJumpTableIndex(MI->getOperand(1).getJumpTableIndex());
assert(0 && "Unknown operand for MakeMI!");
return 0;
}