[all-commits] [llvm/llvm-project] 814a79: [DebugInfo] Separate error generation from reporti...

Alex Langford via All-commits all-commits at lists.llvm.org
Wed Oct 18 09:06:53 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 814a79aea67ba50c1b0d9cce01393b6d4e063e3c
      https://github.com/llvm/llvm-project/commit/814a79aea67ba50c1b0d9cce01393b6d4e063e3c
  Author: Alex Langford <alangford at apple.com>
  Date:   2023-10-18 (Wed, 18 Oct 2023)

  Changed paths:
    M llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h
    M llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
    M llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
    A llvm/test/tools/llvm-dwp/X86/cu_tu_units_manual_v5_invalid.s
    M llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp

  Log Message:
  -----------
  [DebugInfo] Separate error generation from reporting in DWARFHeaderUnit::extract (#68242)

Instead of reporting the error directly through the DWARFContext passed
in as an argument, it would be more flexible to have extract return the
error and allow the caller to react appropriately.

This will be useful for using llvm's DWARFHeaderUnit from lldb which may
report header extraction errors through a different mechanism.




More information about the All-commits mailing list