[all-commits] [llvm/llvm-project] 693da9: [dsymutil][DWARFLinker][NFC] Make interface of Add...

avl-llvm via All-commits all-commits at lists.llvm.org
Thu Dec 10 04:01:53 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 693da9df7481c48dd1edb93e78c66ec57fddeb60
      https://github.com/llvm/llvm-project/commit/693da9df7481c48dd1edb93e78c66ec57fddeb60
  Author: Alexey Lapshin <a.v.lapshin at mail.ru>
  Date:   2020-12-10 (Thu, 10 Dec 2020)

  Changed paths:
    M llvm/include/llvm/DWARFLinker/DWARFLinker.h
    M llvm/lib/DWARFLinker/DWARFLinker.cpp
    M llvm/tools/dsymutil/DwarfLinkerForBinary.cpp
    M llvm/tools/dsymutil/DwarfLinkerForBinary.h

  Log Message:
  -----------
  [dsymutil][DWARFLinker][NFC] Make interface of AddressMap more general.

Current interface of AddressMap assumes that relocations exist.
That is correct for not-linked object file but is not correct
for linked executable. This patch changes interface in such way
that AddressMap could be used not only with not-linked object files:

hasValidRelocationAt()

replaced with:

hasLiveMemoryLocation()
hasLiveAddressRange()

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




More information about the All-commits mailing list