[PATCH] D55509: [NFC][AArch64] Remove duplicate Arch list in target parser tests.
David Spickett via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 10 06:21:26 PST 2018
DavidSpickett created this revision.
Herald added subscribers: llvm-commits, kristof.beyls, javed.absar.
The list generated in the target parser tests is the
same as the one in the AArch64 target parser.
Use that one instead.
Repository:
rL LLVM
https://reviews.llvm.org/D55509
Files:
unittests/Support/TargetParserTest.cpp
Index: unittests/Support/TargetParserTest.cpp
===================================================================
--- unittests/Support/TargetParserTest.cpp
+++ unittests/Support/TargetParserTest.cpp
@@ -965,13 +965,8 @@
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));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55509.177497.patch
Type: text/x-patch
Size: 771 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181210/a7472a2a/attachment.bin>
More information about the llvm-commits
mailing list