summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCSubtarget.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-04-19 20:59:24 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-04-19 20:59:24 +0000
commit18a0929a7a0b87cc50565250e33c33925a57d498 (patch)
treef5c8bb66e9ceb55676ed8e378835f362f1cc37fe /lib/Target/PowerPC/PPCSubtarget.h
parent14e2a90b7b0bb4e53e0e66866575d143ce5997b4 (diff)
downloadllvm-18a0929a7a0b87cc50565250e33c33925a57d498.tar.gz
llvm-18a0929a7a0b87cc50565250e33c33925a57d498.tar.bz2
llvm-18a0929a7a0b87cc50565250e33c33925a57d498.tar.xz
Target/PPC: Kill off DarwinVers, which is now dead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129811 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCSubtarget.h')
-rw-r--r--lib/Target/PowerPC/PPCSubtarget.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/Target/PowerPC/PPCSubtarget.h b/lib/Target/PowerPC/PPCSubtarget.h
index 8502bf4d65..d1fac98892 100644
--- a/lib/Target/PowerPC/PPCSubtarget.h
+++ b/lib/Target/PowerPC/PPCSubtarget.h
@@ -66,10 +66,6 @@ protected:
bool HasLazyResolverStubs;
bool IsJITCodeModel;
- /// DarwinVers - Nonzero if this is a darwin platform. Otherwise, the numeric
- /// version of the platform, e.g. 8 = 10.4 (Tiger), 9 = 10.5 (Leopard), etc.
- unsigned char DarwinVers; // Is any darwin-ppc platform.
-
/// TargetTriple - What processor and OS we're targeting.
Triple TargetTriple;
@@ -142,12 +138,7 @@ public:
const Triple &getTargetTriple() const { return TargetTriple; }
/// isDarwin - True if this is any darwin platform.
- bool isDarwin() const { return DarwinVers != 0; }
- /// 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 isDarwin() const { return TargetTriple.isOSX(); }
bool isDarwinABI() const { return isDarwin(); }
bool isSVR4ABI() const { return !isDarwin(); }