[dsymutil] Add support for outputting assembly
authorJonas Devlieghere <jonas@devlieghere.com>
Mon, 9 Jul 2018 16:58:48 +0000 (16:58 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Mon, 9 Jul 2018 16:58:48 +0000 (16:58 +0000)
commit82dee6aca8755abb3cd2383ce9b46db722d52b21
treebbe18502f8ca53d34971031da9d328752e1223d0
parente1f7c5f8c72f77f5c25aa501a974e36b00f949a7
[dsymutil] Add support for outputting assembly

When implementing the DWARF accelerator tables in dsymutil I ran into an
assertion in the assembler. Debugging these kind of issues is a lot
easier when looking at the assembly instead of debugging the assembler
itself. Since it's only a matter of creating an AsmStreamer instead of a
MCObjectStreamer it made sense to turn this into a (hidden) dsymutil
feature.

Differential revision: https://reviews.llvm.org/D49079

llvm-svn: 336561
llvm/test/tools/dsymutil/X86/assembly-output.test [new file with mode: 0644]
llvm/tools/dsymutil/DwarfLinker.cpp
llvm/tools/dsymutil/DwarfStreamer.cpp
llvm/tools/dsymutil/DwarfStreamer.h
llvm/tools/dsymutil/LinkUtils.h
llvm/tools/dsymutil/dsymutil.cpp