[all-commits] [llvm/llvm-project] 905990: [ubsan] support print_module_map flag in standalon...

Emily Shi via All-commits all-commits at lists.llvm.org
Fri Mar 5 14:00:14 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9059903f2d33098e2c0e7074604da6845e31c436
      https://github.com/llvm/llvm-project/commit/9059903f2d33098e2c0e7074604da6845e31c436
  Author: Emily Shi <code at emi.sh>
  Date:   2021-03-05 (Fri, 05 Mar 2021)

  Changed paths:
    M compiler-rt/lib/ubsan/ubsan_diag.cpp
    M compiler-rt/lib/ubsan/ubsan_init.cpp
    A compiler-rt/test/sanitizer_common/TestCases/Darwin/print-module-map.cpp

  Log Message:
  -----------
  [ubsan] support print_module_map flag in standalone mode

Currently, `print_module_map` is only respected for ubsan if it is ran in tandem with asan. This patch adds support for this flag in standalone mode. I copied the pattern used to implement this for asan.

Also added a common `print_module_map` lit test for Darwin only. Since the print messages are different per platform, we need to write a regex test to cover them. This test is coming in a separate patch

rdar://56135732

Reviewed By: vitalybuka, vsk, delcypher

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




More information about the All-commits mailing list