diff options
| author | Eric Christopher <echristo@gmail.com> | 2015-02-13 22:22:57 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2015-02-13 22:22:57 +0000 |
| commit | a4ae2131935725fbe80bc27cbf447f4bc1d8adbb (patch) | |
| tree | 3d70dad5b67da0a1086f223dc6e7818ed177342f /llvm/lib/Target/PowerPC/PPCFrameLowering.h | |
| parent | 8e5ce331936f46e259acc03a81fd7d105429cc30 (diff) | |
| download | bcm5719-llvm-a4ae2131935725fbe80bc27cbf447f4bc1d8adbb.tar.gz bcm5719-llvm-a4ae2131935725fbe80bc27cbf447f4bc1d8adbb.zip | |
PPC LinkageSize can be computed at initialization time, do so.
llvm-svn: 229163
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCFrameLowering.h')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCFrameLowering.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCFrameLowering.h b/llvm/lib/Target/PowerPC/PPCFrameLowering.h index f41e299269c..e076b2539e9 100644 --- a/llvm/lib/Target/PowerPC/PPCFrameLowering.h +++ b/llvm/lib/Target/PowerPC/PPCFrameLowering.h @@ -26,6 +26,7 @@ class PPCFrameLowering: public TargetFrameLowering { const unsigned ReturnSaveOffset; const unsigned TOCSaveOffset; const unsigned FramePointerSaveOffset; + const unsigned LinkageSize; public: PPCFrameLowering(const PPCSubtarget &STI); @@ -94,14 +95,7 @@ public: /// getLinkageSize - Return the size of the PowerPC ABI linkage area. /// - static unsigned getLinkageSize(bool isPPC64, bool isDarwinABI, - bool isELFv2ABI) { - if (isDarwinABI || isPPC64) - return (isELFv2ABI ? 4 : 6) * (isPPC64 ? 8 : 4); - - // SVR4 ABI: - return 8; - } + unsigned getLinkageSize() const { return LinkageSize; } const SpillSlot * getCalleeSavedSpillSlots(unsigned &NumEntries) const override; |

