diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-04-19 20:54:28 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-04-19 20:54:28 +0000 |
commit | 869eca129b2560a59b8aa0e8fd57b5d8f7de1f96 (patch) | |
tree | cae6dbc02c4552e5abb089512104bd91922d9bbd /lib/Target/PowerPC/PPCSubtarget.h | |
parent | 562ae4bba616de518f76a73618c96835637c8d4a (diff) |
Target/PPC: Add a TargetTriple field.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129809 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCSubtarget.h')
-rw-r--r-- | lib/Target/PowerPC/PPCSubtarget.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCSubtarget.h b/lib/Target/PowerPC/PPCSubtarget.h index 00ec7474c9..8502bf4d65 100644 --- a/lib/Target/PowerPC/PPCSubtarget.h +++ b/lib/Target/PowerPC/PPCSubtarget.h @@ -14,6 +14,7 @@ #ifndef POWERPCSUBTARGET_H #define POWERPCSUBTARGET_H +#include "llvm/ADT/Triple.h" #include "llvm/Target/TargetInstrItineraries.h" #include "llvm/Target/TargetSubtarget.h" @@ -68,6 +69,10 @@ protected: /// 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; + public: /// This constructor initializes the data members to match that /// of the specified triple. @@ -134,6 +139,8 @@ public: bool hasAltivec() const { return HasAltivec; } bool isGigaProcessor() const { return IsGigaProcessor; } + 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. |