[llvm] r205132 - ARM64: remove -m32/-m64 mapping with ARM.
Tim Northover
tnorthover at apple.com
Sun Mar 30 00:25:24 PDT 2014
Author: tnorthover
Date: Sun Mar 30 02:25:23 2014
New Revision: 205132
URL: http://llvm.org/viewvc/llvm-project?rev=205132&view=rev
Log:
ARM64: remove -m32/-m64 mapping with ARM.
This is causing the ARM build-bots to fail since they only include
the ARM backend and can't create an ARM64 target.
Modified:
llvm/trunk/lib/Support/Triple.cpp
llvm/trunk/unittests/ADT/TripleTest.cpp
Modified: llvm/trunk/lib/Support/Triple.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Triple.cpp?rev=205132&r1=205131&r2=205132&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Triple.cpp (original)
+++ llvm/trunk/lib/Support/Triple.cpp Sun Mar 30 02:25:23 2014
@@ -823,6 +823,7 @@ Triple Triple::get32BitArchVariant() con
case Triple::UnknownArch:
case Triple::aarch64:
case Triple::aarch64_be:
+ case Triple::arm64:
case Triple::msp430:
case Triple::systemz:
case Triple::ppc64le:
@@ -856,7 +857,6 @@ Triple Triple::get32BitArchVariant() con
case Triple::sparcv9: T.setArch(Triple::sparc); break;
case Triple::x86_64: T.setArch(Triple::x86); break;
case Triple::spir64: T.setArch(Triple::spir); break;
- case Triple::arm64: T.setArch(Triple::arm); break;
}
return T;
}
@@ -866,6 +866,7 @@ Triple Triple::get64BitArchVariant() con
switch (getArch()) {
case Triple::UnknownArch:
case Triple::amdil:
+ case Triple::arm:
case Triple::armeb:
case Triple::hexagon:
case Triple::le32:
@@ -900,7 +901,6 @@ Triple Triple::get64BitArchVariant() con
case Triple::sparc: T.setArch(Triple::sparcv9); break;
case Triple::x86: T.setArch(Triple::x86_64); break;
case Triple::spir: T.setArch(Triple::spir64); break;
- case Triple::arm: T.setArch(Triple::arm64); break;
}
return T;
}
Modified: llvm/trunk/unittests/ADT/TripleTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/TripleTest.cpp?rev=205132&r1=205131&r2=205132&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/TripleTest.cpp (original)
+++ llvm/trunk/unittests/ADT/TripleTest.cpp Sun Mar 30 02:25:23 2014
@@ -352,10 +352,6 @@ TEST(TripleTest, BitWidthArchVariants) {
EXPECT_EQ(Triple::UnknownArch, T.get32BitArchVariant().getArch());
EXPECT_EQ(Triple::UnknownArch, T.get64BitArchVariant().getArch());
- T.setArch(Triple::arm);
- EXPECT_EQ(Triple::arm, T.get32BitArchVariant().getArch());
- EXPECT_EQ(Triple::arm64, T.get64BitArchVariant().getArch());
-
T.setArch(Triple::mips);
EXPECT_EQ(Triple::mips, T.get32BitArchVariant().getArch());
EXPECT_EQ(Triple::mips64, T.get64BitArchVariant().getArch());
More information about the llvm-commits
mailing list