[llvm] [DebugInfo] Separate error generation from reporting in DWARFHeaderUnit::extract (PR #68242)
Felipe de Azevedo Piovezan via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 5 12:46:23 PDT 2023
================
@@ -79,8 +79,8 @@ class DWARFUnitHeader {
/// Note that \p SectionKind is used as a hint to guess the unit type
/// for DWARF formats prior to DWARFv5. In DWARFv5 the unit type is
/// explicitly defined in the header and the hint is ignored.
- bool extract(DWARFContext &Context, const DWARFDataExtractor &debug_info,
- uint64_t *offset_ptr, DWARFSectionKind SectionKind);
+ Error extract(DWARFContext &Context, const DWARFDataExtractor &debug_info,
----------------
felipepiovezan wrote:
It's nice that now we can tell from the signature the meaning of the returned value (previously we couldn't and there was no documentation about it)
https://github.com/llvm/llvm-project/pull/68242
More information about the llvm-commits
mailing list