OSDN Git Service

Write new tests for r362121
authorMichael Trent <mtrent@apple.com>
Thu, 30 May 2019 20:09:09 +0000 (20:09 +0000)
committerMichael Trent <mtrent@apple.com>
Thu, 30 May 2019 20:09:09 +0000 (20:09 +0000)
commit2f17e9f7494565b4cc5d5b70c81d086c0dbc1a14
tree71c773da97025c162fd067cbd2e8ff2d35bf3723
parentb2a17d0a26b5b7d5229e85f8116dc014d83dc690
Write new tests for r362121

Summary:
The tests for r362121 ran dsymutil against a test binary every time.
This caused problems on lld-x86_64-ubuntu-fast as dsymutil required
a lipo tool be available to process those binaries.

This change rewrites the new test cases in macho-disassemble-g-dsym
to use bespoke test binaries (exe and dwarf) simplifying the test's
runtime dependencies.

The changes to tools/llvm-objdump/MachODump.cpp are unchanged from
r362121

Reviewers: pete, lhames, JDevlieghere

Reviewed By: pete

Subscribers: smeenai, aprantl, rupprecht, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D62694

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362141 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-objdump/X86/Inputs/hello-macho-fat [new file with mode: 0755]
test/tools/llvm-objdump/X86/Inputs/hello-macho-fat.dwarf [new file with mode: 0644]
test/tools/llvm-objdump/X86/Inputs/hello-macho-thin [new file with mode: 0755]
test/tools/llvm-objdump/X86/Inputs/hello-macho-thin.dwarf [new file with mode: 0644]
test/tools/llvm-objdump/X86/macho-disassemble-g-dsym.test
tools/llvm-objdump/MachODump.cpp