[PATCH] D87723: [dsymutil][DWARFLinker][NFC] Make interface of AddressMap more general.

Alexey Lapshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 15 13:48:57 PDT 2020


avl created this revision.
avl added reviewers: aprantl, JDevlieghere, friss.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
avl requested review of this revision.

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()


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87723

Files:
  llvm/include/llvm/DWARFLinker/DWARFLinker.h
  llvm/lib/DWARFLinker/DWARFLinker.cpp
  llvm/tools/dsymutil/DwarfLinkerForBinary.cpp
  llvm/tools/dsymutil/DwarfLinkerForBinary.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87723.292019.patch
Type: text/x-patch
Size: 9996 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200915/963cbcca/attachment.bin>


More information about the llvm-commits mailing list