[PATCH] D71875: [DWARF] Return Error from DWARFDebugArangeSet::extract().
James Henderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 27 01:34:30 PST 2020
jhenderson added inline comments.
================
Comment at: llvm/lib/DebugInfo/DWARF/DWARFContext.cpp:457-460
+ if (Error E = set.extract(arangesData, &offset)) {
+ WithColor::error() << toString(std::move(E)) << '\n';
+ break;
+ }
----------------
dblaikie wrote:
> Might this eventually want to go in the direction of having fallible errors and errors that can continue, like some of @jhenderson 's work? Should we come up with a consistent strategy for this sort of thing as it seems we've developed a few different error handling parsing schemes at this point.
Yeah, we should a) be consistent (though I don't mind specifically what we standardise on) and b) avoid printing such low-level errors in a library, as it makes things hard for clients. See my lightning talk on the subject that was inspired by my debug line error handling work some time ago: https://www.youtube.com/watch?v=YSEY4pg1YB0
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71875/new/
https://reviews.llvm.org/D71875
More information about the llvm-commits
mailing list