[all-commits] [llvm/llvm-project] 5be574: hwasan: refactor order of macros in hwasan_platfor...

Thurston Dang via All-commits all-commits at lists.llvm.org
Wed May 24 17:22:30 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5be5746b6eac315866ddf53c20e21decc30ce682
      https://github.com/llvm/llvm-project/commit/5be5746b6eac315866ddf53c20e21decc30ce682
  Author: Thurston Dang <thurston at google.com>
  Date:   2023-05-25 (Thu, 25 May 2023)

  Changed paths:
    M compiler-rt/lib/hwasan/hwasan_platform_interceptors.h

  Log Message:
  -----------
  hwasan: refactor order of macros in hwasan_platform_interceptors.h [NFC]

Currently, the header file contains all the undefs, followed by all the
define X 0. This will be inconvenient for re-enabling interceptors,
because we would need to comment out (or delete) the corresponding macros
in two different places.

This patch groups together the macros for each function.

Additionally, it adds the suggestion that interceptors should be
re-enabled by commenting out (not deleting) the macros.

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




More information about the All-commits mailing list