[all-commits] [llvm/llvm-project] d7733f: [DebugInfo] Expand ability to load 2-byte addresse...

Jack Andersen via All-commits all-commits at lists.llvm.org
Thu Oct 21 17:31:27 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d7733f84228bde1079117e82b36fac94e9b323ed
      https://github.com/llvm/llvm-project/commit/d7733f84228bde1079117e82b36fac94e9b323ed
  Author: Jack Anderson <jackoalan at gmail.com>
  Date:   2021-10-21 (Thu, 21 Oct 2021)

  Changed paths:
    M llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h
    M llvm/include/llvm/DebugInfo/DWARF/DWARFDebugRangeList.h
    M llvm/lib/DebugInfo/DWARF/DWARFDebugAddr.cpp
    M llvm/lib/DebugInfo/DWARF/DWARFDebugArangeSet.cpp
    M llvm/lib/DebugInfo/DWARF/DWARFDebugRangeList.cpp
    M llvm/lib/DebugInfo/DWARF/DWARFListTable.cpp
    M llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
    A llvm/test/DebugInfo/MSP430/cu-ranges.ll
    A llvm/test/DebugInfo/MSP430/dwarf-basics-v5.ll
    A llvm/test/DebugInfo/MSP430/ranges_always.ll
    M llvm/test/tools/llvm-dwarfdump/X86/debug_addr_invalid_addr_size.s
    M llvm/test/tools/llvm-dwarfdump/X86/debug_rnglists_invalid.s
    M llvm/unittests/DebugInfo/DWARF/DWARFDebugArangeSetTest.cpp

  Log Message:
  -----------
  [DebugInfo] Expand ability to load 2-byte addresses in dwarf sections

Some dwarf loaders in LLVM are hard-coded to only accept 4-byte and 8-byte address sizes. This patch generalizes acceptance into `DWARFContext::isAddressSizeSupported` and provides a common way to generate rejection errors.

The MSP430 target has been given new tests to cover dwarf loading cases that previously failed due to 2-byte addresses.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D111953




More information about the All-commits mailing list