diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2008-12-19 10:55:56 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2008-12-19 10:55:56 +0000 |
commit | 2f6fea90a54787d873cfc25f33668cb4cc7d6e1e (patch) | |
tree | 6f60253965df296ed5310198772ec2eeb0bd5a95 /lib/Target/PowerPC/PPCSubtarget.h | |
parent | d802be39d79fa31ea020f9af57830f8a20174b7b (diff) |
Fix bug 3202.
The EH_frame and .eh symbols are now private, except for darwin9 and earlier.
The patch also fixes the definition of PrivateGlobalPrefix on pcc linux.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61242 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCSubtarget.h')
-rw-r--r-- | lib/Target/PowerPC/PPCSubtarget.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCSubtarget.h b/lib/Target/PowerPC/PPCSubtarget.h index be4c21cd44..bb29d44950 100644 --- a/lib/Target/PowerPC/PPCSubtarget.h +++ b/lib/Target/PowerPC/PPCSubtarget.h @@ -141,6 +141,9 @@ public: /// isDarwin - True if this is darwin9 (leopard, 10.5) or above. bool isDarwin9() const { return DarwinVers >= 9; } + /// getDarwinVers - Return the darwin version number, 8 = tiger, 9 = leopard. + unsigned getDarwinVers() const { return DarwinVers; } + bool isMachoABI() const { return isDarwin() || IsPPC64; } bool isELF32_ABI() const { return !isDarwin() && !IsPPC64; } |