Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion llvm/test/tools/llvm-dwarfdump/AArch64/arch.ll
Original file line number Diff line number Diff line change
@@ -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
;
Expand Down
4 changes: 4 additions & 0 deletions llvm/test/tools/llvm-dwarfdump/filter.test
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down