OSDN Git Service

[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)
commita5d860c47195837f227b4c42a5762058362ee574
tree6cce0c04b3ce8cbbc73bb8cc51e4154162961060
parent798b3ef0fcdf751981c9f14ef87127fa4b019cac
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336561 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/dsymutil/X86/assembly-output.test [new file with mode: 0644]
tools/dsymutil/DwarfLinker.cpp
tools/dsymutil/DwarfStreamer.cpp
tools/dsymutil/DwarfStreamer.h
tools/dsymutil/LinkUtils.h
tools/dsymutil/dsymutil.cpp