This is an archive of the discontinued LLVM Phabricator instance.

[dsymutil] Add support for outputting assembly
ClosedPublic

Authored by JDevlieghere on Jul 9 2018, 7:48 AM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

JDevlieghere created this revision.Jul 9 2018, 7:48 AM
friss accepted this revision.Jul 9 2018, 9:29 AM

I used this trick myself while developing llvm-dsymutil. Makes sense to make it easier to achieve.

This revision is now accepted and ready to land.Jul 9 2018, 9:29 AM
thegameg accepted this revision.Jul 9 2018, 9:35 AM

LGTM

This revision was automatically updated to reflect the committed changes.