Index: llvm/lib/Target/Mips/MipsSubtarget.h |
=================================================================== |
--- a/llvm/lib/Target/Mips/MipsSubtarget.h |
+++ b/llvm/lib/Target/Mips/MipsSubtarget.h |
@@ -87,6 +87,10 @@ protected: |
InstrItineraryData InstrItins; |
+ // @LOCALMOD-START |
+ Triple TargetTriple; |
+ // @LOCALMOD-END |
+ |
public: |
/// Only O32 and EABI supported right now. |
@@ -127,6 +131,10 @@ public: |
bool hasMinMax() const { return HasMinMax; } |
bool hasSwap() const { return HasSwap; } |
bool hasBitCount() const { return HasBitCount; } |
+ |
+ // @LOCALMOD-START |
+ bool isTargetNaCl() const { return TargetTriple.getOS() == Triple::NativeClient; } |
+ // @LOCALMOD-END |
}; |
} // End llvm namespace |