diff options
author | Eli Bendersky <eliben@google.com> | 2012-12-04 18:37:26 +0000 |
---|---|---|
committer | Eli Bendersky <eliben@google.com> | 2012-12-04 18:37:26 +0000 |
commit | abe546368b779e6ba19dbb194500a33c58ecabaa (patch) | |
tree | 44f3013baacd07e9f231b65405ac72ffede46858 /llvm/lib/Target | |
parent | 4a7dc6e3e684449830aed0924519e080e54ff41b (diff) | |
download | bcm5719-llvm-abe546368b779e6ba19dbb194500a33c58ecabaa.tar.gz bcm5719-llvm-abe546368b779e6ba19dbb194500a33c58ecabaa.zip |
Make NaCl naming consistent. The triple OSType is called NaCl and is represented
textually as NativeClient. Also added a link to the native client project for
readers unfamiliar with it.
A Clang patch will follow shortly.
llvm-svn: 169291
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r-- | llvm/lib/Target/ARM/ARMSubtarget.h | 2 | ||||
-rw-r--r-- | llvm/lib/Target/X86/X86Subtarget.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMSubtarget.h b/llvm/lib/Target/ARM/ARMSubtarget.h index 46898cfd8fc..c7e3adcb512 100644 --- a/llvm/lib/Target/ARM/ARMSubtarget.h +++ b/llvm/lib/Target/ARM/ARMSubtarget.h @@ -244,7 +244,7 @@ protected: bool isTargetIOS() const { return TargetTriple.getOS() == Triple::IOS; } bool isTargetDarwin() const { return TargetTriple.isOSDarwin(); } bool isTargetNaCl() const { - return TargetTriple.getOS() == Triple::NativeClient; + return TargetTriple.getOS() == Triple::NaCl; } bool isTargetELF() const { return !isTargetDarwin(); } diff --git a/llvm/lib/Target/X86/X86Subtarget.h b/llvm/lib/Target/X86/X86Subtarget.h index 7e9af2614ce..387edc5698d 100644 --- a/llvm/lib/Target/X86/X86Subtarget.h +++ b/llvm/lib/Target/X86/X86Subtarget.h @@ -249,7 +249,7 @@ public: } bool isTargetLinux() const { return TargetTriple.getOS() == Triple::Linux; } bool isTargetNaCl() const { - return TargetTriple.getOS() == Triple::NativeClient; + return TargetTriple.getOS() == Triple::NaCl; } bool isTargetNaCl32() const { return isTargetNaCl() && !is64Bit(); } bool isTargetNaCl64() const { return isTargetNaCl() && is64Bit(); } |