diff options
Diffstat (limited to 'lib/Target/Mips/MipsSubtarget.h')
-rw-r--r-- | lib/Target/Mips/MipsSubtarget.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsSubtarget.h b/lib/Target/Mips/MipsSubtarget.h index 3215c44be0..4f520d77cc 100644 --- a/lib/Target/Mips/MipsSubtarget.h +++ b/lib/Target/Mips/MipsSubtarget.h @@ -91,6 +91,8 @@ protected: InstrItineraryData InstrItins; + Triple TargetTriple; // @LOCALMOD + public: virtual bool enablePostRAScheduler(CodeGenOpt::Level OptLevel, AntiDepBreakMode& Mode, @@ -139,6 +141,13 @@ public: bool hasMinMax() const { return HasMinMax; } bool hasSwap() const { return HasSwap; } bool hasBitCount() const { return HasBitCount; } + + // @LOCALMOD-BEGIN + bool isTargetNaCl() const { + return TargetTriple.getOS() == Triple::NativeClient; + } + // @LOCALMOD-END + }; } // End llvm namespace |