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/unittests/ADT | |
| 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/unittests/ADT')
| -rw-r--r-- | llvm/unittests/ADT/TripleTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/unittests/ADT/TripleTest.cpp b/llvm/unittests/ADT/TripleTest.cpp index 015eb853e5b..97635cae488 100644 --- a/llvm/unittests/ADT/TripleTest.cpp +++ b/llvm/unittests/ADT/TripleTest.cpp @@ -81,11 +81,11 @@ TEST(TripleTest, ParsedIDs) { EXPECT_EQ(Triple::Darwin, T.getOS()); EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); - T = Triple("i386-pc-linux-elfiamcu"); + T = Triple("i386-pc-elfiamcu"); EXPECT_EQ(Triple::x86, T.getArch()); EXPECT_EQ(Triple::PC, T.getVendor()); - EXPECT_EQ(Triple::Linux, T.getOS()); - EXPECT_EQ(Triple::ELFIAMCU, T.getEnvironment()); + EXPECT_EQ(Triple::ELFIAMCU, T.getOS()); + EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); T = Triple("x86_64-pc-linux-gnu"); EXPECT_EQ(Triple::x86_64, T.getArch()); |

