[all-commits] [llvm/llvm-project] abc51f: sanitizer_common: expose max_address from LoadedMo...

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Fri Apr 1 08:56:16 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: abc51fac09593ec048b3b298fa274af823e0a22d
      https://github.com/llvm/llvm-project/commit/abc51fac09593ec048b3b298fa274af823e0a22d
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2022-04-01 (Fri, 01 Apr 2022)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_common.cpp
    M compiler-rt/lib/sanitizer_common/sanitizer_common.h
    M compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp

  Log Message:
  -----------
  sanitizer_common: expose max_address from LoadedModule

Currently LoadedModule provides max_executable_address.
Replace it with just max_address.
It's only used for printing for human inspection and since
modules are non-overlapping, max_address is as good as max_executable_address
for matching addresses/PCs against modules (I assume it's used for that).
On the hand, max_address is more general and can used to match e.g. data addresses.
I want to use it for that purpose in future changes.

Reviewed By: melver

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




More information about the All-commits mailing list