summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCFrameInfo.h
diff options
context:
space:
mode:
authorNicolas Geoffray <nicolas.geoffray@lip6.fr>2007-04-03 12:35:28 +0000
committerNicolas Geoffray <nicolas.geoffray@lip6.fr>2007-04-03 12:35:28 +0000
commitec58d9f9ddfbfe16ea40822164f340b256c89191 (patch)
tree1503429ea451d332ca6ce38e77b549186fd473c8 /lib/Target/PowerPC/PPCFrameInfo.h
parentcfcd8da70b33118ab3765ed54d63f497321932ce (diff)
downloadllvm-ec58d9f9ddfbfe16ea40822164f340b256c89191.tar.gz
llvm-ec58d9f9ddfbfe16ea40822164f340b256c89191.tar.bz2
llvm-ec58d9f9ddfbfe16ea40822164f340b256c89191.tar.xz
The PPC64 ELF ABI is "intended to use the same structure layout and calling convention rules
as the 64-bit PowerOpen ABI" (Reference http://www.linux-foundation.org/spec/ELF/ppc64/). Change all ELF tests to ELF32. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35624 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCFrameInfo.h')
-rw-r--r--lib/Target/PowerPC/PPCFrameInfo.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Target/PowerPC/PPCFrameInfo.h b/lib/Target/PowerPC/PPCFrameInfo.h
index 0c72824730..535e82386d 100644
--- a/lib/Target/PowerPC/PPCFrameInfo.h
+++ b/lib/Target/PowerPC/PPCFrameInfo.h
@@ -32,8 +32,8 @@ public:
static unsigned getReturnSaveOffset(bool LP64, bool isMacho) {
if (isMacho)
return LP64 ? 16 : 8;
- // For ELF ABI:
- return LP64 ? 8 : 4;
+ // For ELF 32 ABI:
+ return 4;
}
/// getFramePointerSaveOffset - Return the previous frame offset to save the
@@ -46,9 +46,9 @@ public:
if (isMacho)
return LP64 ? 40 : 20;
- // For ELF ABI:
+ // For ELF 32 ABI:
// Save it right before the link register
- return LP64 ? -8 : -4;
+ return -4;
}
/// getLinkageSize - Return the size of the PowerPC ABI linkage area.
@@ -57,8 +57,8 @@ public:
if (isMacho)
return 6 * (LP64 ? 8 : 4);
- // For ELF ABI:
- return LP64 ? 16 : 8;
+ // For ELF 32 ABI:
+ return 8;
}
/// getMinCallArgumentsSize - Return the size of the minium PowerPC ABI
@@ -73,7 +73,7 @@ public:
if (isMacho)
return 8 * (LP64 ? 8 : 4);
- // For Linux ABI:
+ // For ELF 32 ABI:
// There is no default stack allocated for the 8 first GPR arguments.
return 0;
}