[PATCH] D85505: [dwarf2yaml] Change the return type of dumping functions to Error.

Xing GUO via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 10 03:48:02 PDT 2020


Higuoxing added a comment.

In D85505#2206209 <https://reviews.llvm.org/D85505#2206209>, @jhenderson wrote:

> Right, that would be my personal preference. Limiting the scope of where errors need handling by not emitting them earlier than necessary seems beneficial to me. @grimar, any thoughts?

I think your opinion makes more sense. Actually, some of the DWARF dumpers are fallible. We can keep the return type to be `void` by now and refactor them step by step. Then, this change can be abandoned?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85505/new/

https://reviews.llvm.org/D85505



More information about the llvm-commits mailing list