From 770b4b830a96c365bd12b6ea9219c5aee5aa74f4 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 19 Dec 2008 10:55:56 +0000 Subject: 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. llvm-svn: 61242 --- llvm/lib/Target/PowerPC/PPCSubtarget.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'llvm/lib/Target/PowerPC/PPCSubtarget.h') diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.h b/llvm/lib/Target/PowerPC/PPCSubtarget.h index be4c21cd448..bb29d449507 100644 --- a/llvm/lib/Target/PowerPC/PPCSubtarget.h +++ b/llvm/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; } -- cgit v1.2.3