aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCSubtarget.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/PPCSubtarget.h
parentcfcd8da70b33118ab3765ed54d63f497321932ce (diff)
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/PPCSubtarget.h')
-rw-r--r--lib/Target/PowerPC/PPCSubtarget.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/PPCSubtarget.h b/lib/Target/PowerPC/PPCSubtarget.h
index eedcf3cb11..d1e135c32f 100644
--- a/lib/Target/PowerPC/PPCSubtarget.h
+++ b/lib/Target/PowerPC/PPCSubtarget.h
@@ -134,8 +134,8 @@ public:
bool isDarwin() const { return IsDarwin; }
- bool isMachoABI() const { return IsDarwin; }
- bool isELF_ABI() const { return !IsDarwin; }
+ bool isMachoABI() const { return IsDarwin || IsPPC64; }
+ bool isELF32_ABI() const { return !IsDarwin && !IsPPC64; }
unsigned getAsmFlavor() const {
return AsmFlavor != Unset ? unsigned(AsmFlavor) : 0;