diff --git a/include/llvm/ADT/Triple.h b/include/llvm/ADT/Triple.h index b6a6fe67b7a..92e33e8d474 100644 --- a/include/llvm/ADT/Triple.h +++ b/include/llvm/ADT/Triple.h @@ -85,8 +85,6 @@ public: xcore, // XCore: xcore nvptx, // NVPTX: 32-bit nvptx64, // NVPTX: 64-bit - le32, // le32: generic little-endian 32-bit CPU (PNaCl) - le64, // le64: generic little-endian 64-bit CPU (PNaCl) amdil, // AMDIL amdil64, // AMDIL with 64-bit pointers hsail, // AMD HSAIL diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp index 88311546354..007ece78513 100644 --- a/lib/Support/Triple.cpp +++ b/lib/Support/Triple.cpp @@ -42,8 +42,6 @@ StringRef Triple::getArchTypeName(ArchType Kind) { case hsail: return "hsail"; case kalimba: return "kalimba"; case lanai: return "lanai"; - case le32: return "le32"; - case le64: return "le64"; case m68k: return "m68k"; case mips64: return "mips64"; case mips64el: return "mips64el"; @@ -136,9 +134,6 @@ StringRef Triple::getArchTypePrefix(ArchType Kind) { case nvptx: return "nvvm"; case nvptx64: return "nvvm"; - case le32: return "le32"; - case le64: return "le64"; - case amdil: case amdil64: return "amdil"; @@ -315,8 +310,6 @@ Triple::ArchType Triple::getArchTypeForLLVMName(StringRef Name) { .Case("xcore", xcore) .Case("nvptx", nvptx) .Case("nvptx64", nvptx64) - .Case("le32", le32) - .Case("le64", le64) .Case("amdil", amdil) .Case("amdil64", amdil64) .Case("hsail", hsail) @@ -448,8 +441,6 @@ static Triple::ArchType parseArch(StringRef ArchName) { .Case("xcore", Triple::xcore) .Case("nvptx", Triple::nvptx) .Case("nvptx64", Triple::nvptx64) - .Case("le32", Triple::le32) - .Case("le64", Triple::le64) .Case("amdil", Triple::amdil) .Case("amdil64", Triple::amdil64) .Case("hsail", Triple::hsail) @@ -709,8 +700,6 @@ static Triple::ObjectFormatType getDefaultFormat(const Triple &T) { case Triple::hsail: case Triple::kalimba: case Triple::lanai: - case Triple::le32: - case Triple::le64: case Triple::m68k: case Triple::mips64: case Triple::mips64el: @@ -1284,7 +1273,6 @@ static unsigned getArchPointerBitWidth(llvm::Triple::ArchType Arch) { case llvm::Triple::hsail: case llvm::Triple::kalimba: case llvm::Triple::lanai: - case llvm::Triple::le32: case llvm::Triple::m68k: case llvm::Triple::mips: case llvm::Triple::mipsel: @@ -1314,7 +1302,6 @@ static unsigned getArchPointerBitWidth(llvm::Triple::ArchType Arch) { case llvm::Triple::bpfeb: case llvm::Triple::bpfel: case llvm::Triple::hsail64: - case llvm::Triple::le64: case llvm::Triple::mips64: case llvm::Triple::mips64el: case llvm::Triple::nvptx64: @@ -1369,7 +1356,6 @@ Triple Triple::get32BitArchVariant() const { case Triple::hsail: case Triple::kalimba: case Triple::lanai: - case Triple::le32: case Triple::m68k: case Triple::mips: case Triple::mipsel: @@ -1397,7 +1383,6 @@ Triple Triple::get32BitArchVariant() const { case Triple::aarch64_be: T.setArch(Triple::armeb); break; case Triple::amdil64: T.setArch(Triple::amdil); break; case Triple::hsail64: T.setArch(Triple::hsail); break; - case Triple::le64: T.setArch(Triple::le32); break; case Triple::mips64: T.setArch(Triple::mips); break; case Triple::mips64el: T.setArch(Triple::mipsel); break; case Triple::nvptx64: T.setArch(Triple::nvptx); break; @@ -1441,7 +1426,6 @@ Triple Triple::get64BitArchVariant() const { case Triple::bpfeb: case Triple::bpfel: case Triple::hsail64: - case Triple::le64: case Triple::mips64: case Triple::mips64el: case Triple::nvptx64: @@ -1463,7 +1447,6 @@ Triple Triple::get64BitArchVariant() const { case Triple::arm: T.setArch(Triple::aarch64); break; case Triple::armeb: T.setArch(Triple::aarch64_be); break; case Triple::hsail: T.setArch(Triple::hsail64); break; - case Triple::le32: T.setArch(Triple::le64); break; case Triple::mips: T.setArch(Triple::mips64); break; case Triple::mipsel: T.setArch(Triple::mips64el); break; case Triple::nvptx: T.setArch(Triple::nvptx64); break; @@ -1496,8 +1479,6 @@ Triple Triple::getBigEndianArchVariant() const { case Triple::hsail64: case Triple::hsail: case Triple::kalimba: - case Triple::le32: - case Triple::le64: case Triple::msp430: case Triple::nvptx64: case Triple::nvptx: @@ -1586,8 +1567,6 @@ bool Triple::isLittleEndian() const { case Triple::hsail64: case Triple::hsail: case Triple::kalimba: - case Triple::le32: - case Triple::le64: case Triple::mips64el: case Triple::mipsel: case Triple::msp430: diff --git a/test/CodeGen/Generic/no-target.ll b/test/CodeGen/Generic/no-target.ll deleted file mode 100644 index 4a4724fdf2d..00000000000 --- a/test/CodeGen/Generic/no-target.ll +++ /dev/null @@ -1,3 +0,0 @@ -; RUN: not llc -mtriple le32-unknown-nacl %s -o - 2>&1 | FileCheck %s - -; CHECK: error: unable to get target for 'le32-unknown-nacl' diff --git a/unittests/ADT/TripleTest.cpp b/unittests/ADT/TripleTest.cpp index eeba4d8895d..f9ff7dd586c 100644 --- a/unittests/ADT/TripleTest.cpp +++ b/unittests/ADT/TripleTest.cpp @@ -1044,14 +1044,6 @@ TEST(TripleTest, BitWidthArchVariants) { EXPECT_EQ(Triple::renderscript32, T.get32BitArchVariant().getArch()); EXPECT_EQ(Triple::renderscript64, T.get64BitArchVariant().getArch()); - T.setArch(Triple::le32); - EXPECT_EQ(Triple::le32, T.get32BitArchVariant().getArch()); - EXPECT_EQ(Triple::le64, T.get64BitArchVariant().getArch()); - - T.setArch(Triple::le64); - EXPECT_EQ(Triple::le32, T.get32BitArchVariant().getArch()); - EXPECT_EQ(Triple::le64, T.get64BitArchVariant().getArch()); - T.setArch(Triple::armeb); EXPECT_EQ(Triple::armeb, T.get32BitArchVariant().getArch()); EXPECT_EQ(Triple::aarch64_be, T.get64BitArchVariant().getArch()); @@ -1166,14 +1158,6 @@ TEST(TripleTest, EndianArchVariants) { EXPECT_EQ(Triple::tce, T.getBigEndianArchVariant().getArch()); EXPECT_EQ(Triple::tcele, T.getLittleEndianArchVariant().getArch()); - T.setArch(Triple::le32); - EXPECT_EQ(Triple::UnknownArch, T.getBigEndianArchVariant().getArch()); - EXPECT_EQ(Triple::le32, T.getLittleEndianArchVariant().getArch()); - - T.setArch(Triple::le64); - EXPECT_EQ(Triple::UnknownArch, T.getBigEndianArchVariant().getArch()); - EXPECT_EQ(Triple::le64, T.getLittleEndianArchVariant().getArch()); - T.setArch(Triple::csky); EXPECT_EQ(Triple::UnknownArch, T.getBigEndianArchVariant().getArch()); EXPECT_EQ(Triple::csky, T.getLittleEndianArchVariant().getArch()); diff --git a/utils/gn/secondary/clang/lib/Basic/BUILD.gn b/utils/gn/secondary/clang/lib/Basic/BUILD.gn index 243399c9517..28f9ed22824 100644 --- a/utils/gn/secondary/clang/lib/Basic/BUILD.gn +++ b/utils/gn/secondary/clang/lib/Basic/BUILD.gn @@ -93,7 +93,6 @@ static_library("Basic") { "Targets/BPF.cpp", "Targets/Hexagon.cpp", "Targets/Lanai.cpp", - "Targets/Le64.cpp", "Targets/M68k.cpp", "Targets/MSP430.cpp", "Targets/Mips.cpp",