diff --git a/llvm/test/tools/llvm-dwarfdump/AArch64/arch.ll b/llvm/test/tools/llvm-dwarfdump/AArch64/arch.ll index d74b199778eb4..86505a3f9a8a1 100644 --- a/llvm/test/tools/llvm-dwarfdump/AArch64/arch.ll +++ b/llvm/test/tools/llvm-dwarfdump/AArch64/arch.ll @@ -1,6 +1,5 @@ ; RUN: llc -O0 %s -filetype=obj -o %t.o ; RUN: llvm-dwarfdump -arch arm64 %t.o | FileCheck %s -; RUN: llvm-dwarfdump -arch aarch64 %t.o | FileCheck %s ; RUN: llvm-dwarfdump -arch 0x0100000c %t.o | FileCheck %s ; CHECK: file format Mach-O arm64 ; diff --git a/llvm/test/tools/llvm-dwarfdump/filter.test b/llvm/test/tools/llvm-dwarfdump/filter.test new file mode 100644 index 0000000000000..60537d233f53d --- /dev/null +++ b/llvm/test/tools/llvm-dwarfdump/filter.test @@ -0,0 +1,4 @@ +Make sure that passing --arch armv7s only shows the armv7s slice and not the armv7 slice. + +RUN: llvm-dwarfdump -arch armv7s %S/../dsymutil/Inputs/fat-test.arm.dylib | FileCheck %s +CHECK-NOT: (armv7) diff --git a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp index e20f6041f98d8..374bdd482a8d6 100644 --- a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp +++ b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp @@ -271,7 +271,7 @@ static bool filterArch(ObjectFile &Obj) { return true; // Match as name. - if (MachO->getArchTriple().getArch() == Triple(Arch).getArch()) + if (MachO->getArchTriple().getArchName() == Triple(Arch).getArchName()) return true; } }