This is an archive of the discontinued LLVM Phabricator instance.

[DWARFYAML][debug_info] Add support for error handling.
ClosedPublic

Authored by Higuoxing on Jun 21 2020, 4:42 AM.

Details

Summary

This patch helps add support for error handling in DWARFYAML::emitDebugInfo().

Diff Detail

Event Timeline

Higuoxing created this revision.Jun 21 2020, 4:42 AM
Higuoxing marked an inline comment as done.Jun 22 2020, 1:44 AM
Higuoxing added inline comments.
llvm/test/tools/yaml2obj/ELF/DWARF/debug-info.yaml
646

'a fatal error' -> 'an error'

Sorry I didn't notice it, I'll change it later

jhenderson accepted this revision.Jun 22 2020, 1:44 AM

LGTM, with one nit.

llvm/lib/ObjectYAML/DWARFVisitor.h
16

Could you forward declare Error here, rather than having an extra include?

This revision is now accepted and ready to land.Jun 22 2020, 1:44 AM
Higuoxing marked an inline comment as done.Jun 22 2020, 1:45 AM
Higuoxing added inline comments.
llvm/lib/ObjectYAML/DWARFVisitor.h
16

Sure, I will do it later. Thanks!

Higuoxing updated this revision to Diff 272358.Jun 22 2020, 2:43 AM
Higuoxing marked an inline comment as done.

Address review comments.

jhenderson accepted this revision.Jun 22 2020, 3:15 AM
This revision was automatically updated to reflect the committed changes.