diff options
author | Michael Kuperstein <michael.m.kuperstein@intel.com> | 2015-10-27 07:23:59 +0000 |
---|---|---|
committer | Michael Kuperstein <michael.m.kuperstein@intel.com> | 2015-10-27 07:23:59 +0000 |
commit | e1194bdb4f665ea525ee2b5bfa266403e5ea0fcd (patch) | |
tree | 29819139f07e75901e5a6e5b624f00d031bf236d /llvm/include | |
parent | 99af5b2ea7d25f44edeb9182b926943b4666f713 (diff) | |
download | bcm5719-llvm-e1194bdb4f665ea525ee2b5bfa266403e5ea0fcd.tar.gz bcm5719-llvm-e1194bdb4f665ea525ee2b5bfa266403e5ea0fcd.zip |
[X86] Make elfiamcu an OS, not an environment.
GNU tools require elfiamcu to take up the entire OS field, so, e.g.
i?86-*-linux-elfiamcu is not considered a legal triple.
Make us compatible.
Differential Revision: http://reviews.llvm.org/D14081
llvm-svn: 251390
Diffstat (limited to 'llvm/include')
-rw-r--r-- | llvm/include/llvm/ADT/Triple.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/include/llvm/ADT/Triple.h b/llvm/include/llvm/ADT/Triple.h index bb0e05c0deb..5f3742c8998 100644 --- a/llvm/include/llvm/ADT/Triple.h +++ b/llvm/include/llvm/ADT/Triple.h @@ -155,7 +155,8 @@ public: NVCL, // NVIDIA OpenCL AMDHSA, // AMD HSA Runtime PS4, - LastOSType = PS4 + ELFIAMCU, + LastOSType = ELFIAMCU }; enum EnvironmentType { UnknownEnvironment, @@ -174,8 +175,7 @@ public: Cygnus, AMDOpenCL, CoreCLR, - ELFIAMCU, - LastEnvironmentType = ELFIAMCU + LastEnvironmentType = CoreCLR }; enum ObjectFormatType { UnknownObjectFormat, @@ -432,8 +432,8 @@ public: return getOS() == Triple::Bitrig; } - bool isEnvironmentIAMCU() const { - return getEnvironment() == Triple::ELFIAMCU; + bool isOSIAMCU() const { + return getOS() == Triple::ELFIAMCU; } bool isWindowsMSVCEnvironment() const { |