[PATCH] D89630: [sanitizer] Convert PrintModuleMap to DumpProcessMap

Teresa Johnson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 17 10:52:02 PDT 2020


tejohnson created this revision.
tejohnson added a reviewer: vitalybuka.
Herald added a project: Sanitizers.
Herald added a subscriber: Sanitizers.
tejohnson requested review of this revision.

As discussed in the review for D87120 <https://reviews.llvm.org/D87120> (specifically at
https://reviews.llvm.org/D87120#inline-831939), clean up PrintModuleMap
and DumpProcessMap usage differences. The former is only implemented for
Mac OSX, whereas the latter is implemented for all OSes. The former is
called by asan and tsan, and the latter by hwasan and now memprof, under
the same option. Simply rename the PrintModuleMap implementation for Mac
to DumpProcessMap, remove other empty PrintModuleMap implementations,
and convert asan/tsan to new name. The existing posix DumpProcessMap is
disabled for SANITIZER_MAC.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D89630

Files:
  compiler-rt/lib/asan/asan_report.cpp
  compiler-rt/lib/asan/asan_rtl.cpp
  compiler-rt/lib/sanitizer_common/sanitizer_common.h
  compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cpp
  compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
  compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp
  compiler-rt/lib/sanitizer_common/sanitizer_posix.cpp
  compiler-rt/lib/sanitizer_common/sanitizer_rtems.cpp
  compiler-rt/lib/sanitizer_common/sanitizer_win.cpp
  compiler-rt/lib/tsan/rtl/tsan_report.cpp
  compiler-rt/lib/tsan/rtl/tsan_rtl.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89630.298840.patch
Type: text/x-patch
Size: 5448 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201017/5bcbf2d8/attachment.bin>


More information about the llvm-commits mailing list