sanitizer_common: expose max_address from LoadedModule
authorDmitry Vyukov <dvyukov@google.com>
Fri, 1 Apr 2022 14:35:33 +0000 (16:35 +0200)
committerDmitry Vyukov <dvyukov@google.com>
Fri, 1 Apr 2022 15:56:03 +0000 (17:56 +0200)
commitabc51fac09593ec048b3b298fa274af823e0a22d
tree327c225f8588871b0d64acc5fb93746ba4e2421a
parentcad178274c0bbf02b10bc50ada9a2d0b02194b9c
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
compiler-rt/lib/sanitizer_common/sanitizer_common.cpp
compiler-rt/lib/sanitizer_common/sanitizer_common.h
compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp