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)
commitc58130bc8445edfa7438fe210da442b7019d0363
tree24d742101a0297ff73980740a2ae50798317232d
parent9b2aeb77b041f8d2ef2ba039ba93b6effcebe4b9
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

llvm-svn: 362141
llvm/test/tools/llvm-objdump/X86/Inputs/hello-macho-fat [new file with mode: 0755]
llvm/test/tools/llvm-objdump/X86/Inputs/hello-macho-fat.dwarf [new file with mode: 0644]
llvm/test/tools/llvm-objdump/X86/Inputs/hello-macho-thin [new file with mode: 0755]
llvm/test/tools/llvm-objdump/X86/Inputs/hello-macho-thin.dwarf [new file with mode: 0644]
llvm/test/tools/llvm-objdump/X86/macho-disassemble-g-dsym.test
llvm/tools/llvm-objdump/MachODump.cpp