[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:29:14 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL348757: [NFC][AArch64] Remove duplicate Arch list in target parser tests (authored by DavidSpickett, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D55509?vs=177497&id=177499#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55509/new/

https://reviews.llvm.org/D55509

Files:
  llvm/trunk/unittests/Support/TargetParserTest.cpp


Index: llvm/trunk/unittests/Support/TargetParserTest.cpp
===================================================================
--- llvm/trunk/unittests/Support/TargetParserTest.cpp
+++ llvm/trunk/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.177499.patch
Type: text/x-patch
Size: 804 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181210/31e2f532/attachment.bin>


More information about the llvm-commits mailing list