summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMFrameLowering.cpp
diff options
context:
space:
mode:
authorOliver Stannard <oliver.stannard@arm.com>2014-04-03 08:45:16 +0000
committerOliver Stannard <oliver.stannard@arm.com>2014-04-03 08:45:16 +0000
commitb8c20fdb2b5cf219621ac7e1be8ce91246e83253 (patch)
treec42b43e8813f5746957b843c0bf3514d1b9d8136 /lib/Target/ARM/ARMFrameLowering.cpp
parentc8ce9677e6095746fc3d7d423240a07d899d928a (diff)
downloadllvm-b8c20fdb2b5cf219621ac7e1be8ce91246e83253.tar.gz
llvm-b8c20fdb2b5cf219621ac7e1be8ce91246e83253.tar.bz2
llvm-b8c20fdb2b5cf219621ac7e1be8ce91246e83253.tar.xz
ARM: Use __STACK_LIMIT symbol for segmented stacks
We cannot use STACK_LIMIT, as it is not reserved for the compiler by the C spec. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205516 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMFrameLowering.cpp')
-rw-r--r--lib/Target/ARM/ARMFrameLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMFrameLowering.cpp b/lib/Target/ARM/ARMFrameLowering.cpp
index c685d3e4c3..36ecfca6e7 100644
--- a/lib/Target/ARM/ARMFrameLowering.cpp
+++ b/lib/Target/ARM/ARMFrameLowering.cpp
@@ -1783,7 +1783,7 @@ void ARMFrameLowering::adjustForSegmentedStacks(MachineFunction &MF) const {
if (Thumb && ST->isThumb1Only()) {
unsigned PCLabelId = ARMFI->createPICLabelUId();
ARMConstantPoolValue *NewCPV = ARMConstantPoolSymbol::Create(
- MF.getFunction()->getContext(), "STACK_LIMIT", PCLabelId, 0);
+ MF.getFunction()->getContext(), "__STACK_LIMIT", PCLabelId, 0);
MachineConstantPool *MCP = MF.getConstantPool();
unsigned CPI = MCP->getConstantPoolIndex(NewCPV, MF.getAlignment());