summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PowerPCFrameInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/PowerPC/PowerPCFrameInfo.h')
-rw-r--r--llvm/lib/Target/PowerPC/PowerPCFrameInfo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PowerPCFrameInfo.h b/llvm/lib/Target/PowerPC/PowerPCFrameInfo.h
index b0bba7979ab..423de2978ed 100644
--- a/llvm/lib/Target/PowerPC/PowerPCFrameInfo.h
+++ b/llvm/lib/Target/PowerPC/PowerPCFrameInfo.h
@@ -25,10 +25,10 @@ class PowerPCFrameInfo: public TargetFrameInfo {
std::pair<unsigned, int> LR[1];
public:
- PowerPCFrameInfo(const TargetMachine &tm)
+ PowerPCFrameInfo(const TargetMachine &tm, bool LP64)
: TargetFrameInfo(TargetFrameInfo::StackGrowsDown, 16, 0), TM(tm) {
LR[0].first = PPC::LR;
- LR[0].second = 8;
+ LR[0].second = LP64 ? 16 : 8;
}
const std::pair<unsigned, int> *
OpenPOWER on IntegriCloud