[all-commits] [llvm/llvm-project] fa2a03: [NFC][DWARFLinker] Refactor address emitting code.

avl-llvm via All-commits all-commits at lists.llvm.org
Fri Jan 20 08:48:03 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fa2a03dc7acd0ba551a3328a2d9d5d313e9043d1
      https://github.com/llvm/llvm-project/commit/fa2a03dc7acd0ba551a3328a2d9d5d313e9043d1
  Author: Alexey Lapshin <a.v.lapshin at mail.ru>
  Date:   2023-01-20 (Fri, 20 Jan 2023)

  Changed paths:
    M llvm/include/llvm/DWARFLinker/DWARFLinker.h
    M llvm/include/llvm/DWARFLinker/DWARFLinkerCompileUnit.h
    M llvm/include/llvm/DWARFLinker/DWARFStreamer.h
    M llvm/lib/DWARFLinker/DWARFLinker.cpp
    M llvm/lib/DWARFLinker/DWARFLinkerCompileUnit.cpp
    M llvm/lib/DWARFLinker/DWARFStreamer.cpp

  Log Message:
  -----------
  [NFC][DWARFLinker] Refactor address emitting code.

As a preparation for implementing DWARFv5 address ranges generation,
this patch refactors existing address ranges generation code:
Split emitUnitRangesEntries into two functions emitDwarfDebugArangesTable
and emitDwarfDebugRangesTableFragment. Use AddressRanges to prepare linked
address ranges. Refactor Unit.getLowPc(), to use std::nullopt as undefined value.

Reviewed By: JDevlieghere

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




More information about the All-commits mailing list