This is an archive of the discontinued LLVM Phabricator instance.

[dsymutil] Unify error handling and add color
ClosedPublic

Authored by JDevlieghere on Mar 2 2018, 4:13 PM.

Details

Summary

We improved the handling of errors and warnings in dwarfdump's verifier in
rL314498. This patch does the same thing for dsymutil.

I moved the SyntaxHighlighting header out of libDwarf. I'm not sure
whether it would make sense to move this in support, as the syntax
itself is still pretty much tailored to dumping debug info. Putting it
in the DebugInfo root also didn't feel right, so this felt like the
least invasive thing to do for now. Please don't hesitate to let me know
if you have a better alternative in mind!

Diff Detail

Repository
rL LLVM

Event Timeline

JDevlieghere created this revision.Mar 2 2018, 4:13 PM
aprantl accepted this revision.Mar 7 2018, 8:32 AM

We might want to think about separating WithColor from the actual syntax definition. Then we could move WithColor to Support, and perhaps have a DWARF syntax definition in a header only in libDebugInfo. Maybe it doesn't matter if it is in support, too, since we already have all the DWARF constants there.

In any case, this seems to be an incremental improvement over the status quo, so it works for me, too.

This revision is now accepted and ready to land.Mar 7 2018, 8:32 AM
JDevlieghere planned changes to this revision.Mar 7 2018, 10:32 AM

Thanks! I might as well do the move to Support first, rather than moving the file around twice.

This revision was not accepted when it landed; it landed in state Changes Planned.Mar 9 2018, 7:26 AM
This revision was automatically updated to reflect the committed changes.