[PATCH] D44560: [DWARF] Rework debug line parsing to use llvm::Error and callbacks
James Henderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 27 08:17:13 PDT 2018
jhenderson added a comment.
In https://reviews.llvm.org/D44560#1049039, @jhenderson wrote:
> So it turns out that the DWARFContext already has an error handler, which has a Halt/Continue policy (similar to what we need for debug_line)! I'm still investigating usability, but it looks like we might not need an entirely new mechanism...
I'm less enthusiastic about this now, although I think the principle of using a single error handling for DWARFContext is still the right one overall. The Halt/Continue policy is what the error handler returns, which the code then has to check. I'm not sure I see a benefit for this over either return Error, or not returning anything (and indicating success/failure in another manner), at least for debug line parsing.
Repository:
rL LLVM
https://reviews.llvm.org/D44560
More information about the llvm-commits
mailing list