[llvm] r348757 - [NFC][AArch64] Remove duplicate Arch list in target parser tests
David Spickett via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 10 06:26:07 PST 2018
Author: davidspickett
Date: Mon Dec 10 06:26:06 2018
New Revision: 348757
URL: http://llvm.org/viewvc/llvm-project?rev=348757&view=rev
Log:
[NFC][AArch64] Remove duplicate Arch list in target parser tests
The list generated in the target parser tests is the
same as the one in the AArch64 target parser.
Use that one instead.
Differential Revision: https://reviews.llvm.org/D55509
Modified:
llvm/trunk/unittests/Support/TargetParserTest.cpp
Modified: llvm/trunk/unittests/Support/TargetParserTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/TargetParserTest.cpp?rev=348757&r1=348756&r2=348757&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/TargetParserTest.cpp (original)
+++ llvm/trunk/unittests/Support/TargetParserTest.cpp Mon Dec 10 06:26:06 2018
@@ -965,13 +965,8 @@ TEST(TargetParserTest, AArch64ExtensionF
TEST(TargetParserTest, AArch64ArchFeatures) {
std::vector<StringRef> Features;
- AArch64::ArchKind ArchKinds[] = {
-#define AARCH64_ARCH(NAME, ID, CPU_ATTR, SUB_ARCH, ARCH_ATTR, ARCH_FPU, ARCH_BASE_EXT) \
- AArch64::ArchKind::ID,
-#include "llvm/Support/AArch64TargetParser.def"
- };
- for (auto AK : ArchKinds)
+ for (auto AK : AArch64::ArchKinds)
EXPECT_TRUE((AK == AArch64::ArchKind::INVALID)
? !AArch64::getArchFeatures(AK, Features)
: AArch64::getArchFeatures(AK, Features));
More information about the llvm-commits
mailing list