summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/Thumb1RegisterInfo.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2011-03-05 18:43:55 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2011-03-05 18:43:55 +0000
commitb3fcc06d2124f9d01e3b48097b44cc141309908e (patch)
tree7e137fd12c4922bf68cd0b3f08562b242ad1b8f4 /lib/Target/ARM/Thumb1RegisterInfo.cpp
parent3daccd82d3151fa3629de430b55698a81084fc9e (diff)
downloadllvm-b3fcc06d2124f9d01e3b48097b44cc141309908e.tar.gz
llvm-b3fcc06d2124f9d01e3b48097b44cc141309908e.tar.bz2
llvm-b3fcc06d2124f9d01e3b48097b44cc141309908e.tar.xz
In Thumb1 mode the constant might be materialized via the load from constpool. Emit unwinding information in case when this load from constpool is used to change the stack pointer in the prologue.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127105 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/Thumb1RegisterInfo.cpp')
-rw-r--r--lib/Target/ARM/Thumb1RegisterInfo.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/ARM/Thumb1RegisterInfo.cpp b/lib/Target/ARM/Thumb1RegisterInfo.cpp
index 4d272ee424..d1d7ec49e3 100644
--- a/lib/Target/ARM/Thumb1RegisterInfo.cpp
+++ b/lib/Target/ARM/Thumb1RegisterInfo.cpp
@@ -65,9 +65,9 @@ Thumb1RegisterInfo::emitLoadConstPool(MachineBasicBlock &MBB,
unsigned Idx = ConstantPool->getConstantPoolIndex(C, 4);
BuildMI(MBB, MBBI, dl, TII.get(ARM::tLDRpci))
- .addReg(DestReg, getDefRegState(true), SubIdx)
- .addConstantPoolIndex(Idx).addImm(Pred).addReg(PredReg)
- .setMIFlags(MIFlags)
+ .addReg(DestReg, getDefRegState(true), SubIdx)
+ .addConstantPoolIndex(Idx).addImm(Pred).addReg(PredReg)
+ .setMIFlags(MIFlags);
}