summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMConstantIslandPass.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2011-07-18 18:50:52 +0000
committerOwen Anderson <resistor@mac.com>2011-07-18 18:50:52 +0000
commit0af0dc8ac6d084bb04cf0188e48eecd6c98903ba (patch)
tree3b8b26e358c9784b6320df8334c87e9a37c150cc /lib/Target/ARM/ARMConstantIslandPass.cpp
parentfc47933db5c8fea9bc89470d83cc5af7ca36f2a3 (diff)
downloadllvm-0af0dc8ac6d084bb04cf0188e48eecd6c98903ba.tar.gz
llvm-0af0dc8ac6d084bb04cf0188e48eecd6c98903ba.tar.bz2
llvm-0af0dc8ac6d084bb04cf0188e48eecd6c98903ba.tar.xz
Re-apply r135319 with a fix for the constant island pass.
Original Log: Get rid of the separate opcodes for the Darwin versions of tBL, tBLXi, and tBLXr, using pseudo-instructions to lower to the single final opcode. Update the ARM disassembler for this change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135414 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMConstantIslandPass.cpp')
-rw-r--r--lib/Target/ARM/ARMConstantIslandPass.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMConstantIslandPass.cpp b/lib/Target/ARM/ARMConstantIslandPass.cpp
index f45ebdc535..f53714cb8d 100644
--- a/lib/Target/ARM/ARMConstantIslandPass.cpp
+++ b/lib/Target/ARM/ARMConstantIslandPass.cpp
@@ -1430,6 +1430,8 @@ ARMConstantIslands::FixUpUnconditionalBr(MachineFunction &MF, ImmBranch &Br) {
// Use BL to implement far jump.
Br.MaxDisp = (1 << 21) * 2;
MI->setDesc(TII->get(ARM::tBfar));
+ MI->addOperand(MachineOperand::CreateImm((int64_t)ARMCC::AL));
+ MI->addOperand(MachineOperand::CreateReg(0, false));
BBSizes[MBB->getNumber()] += 2;
AdjustBBOffsetsAfter(MBB, 2);
HasFarJump = true;