[all-commits] [llvm/llvm-project] be8e4d: [GWP-ASan] Rework utilities (NFC)

Kostya Kortchinsky via All-commits all-commits at lists.llvm.org
Tue Oct 20 16:05:06 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: be8e4de7240eb0f7dc2f7fd6d07898184c04c72b
      https://github.com/llvm/llvm-project/commit/be8e4de7240eb0f7dc2f7fd6d07898184c04c72b
  Author: Kostya Kortchinsky <kostyak at google.com>
  Date:   2020-10-20 (Tue, 20 Oct 2020)

  Changed paths:
    M compiler-rt/lib/gwp_asan/CMakeLists.txt
    M compiler-rt/lib/gwp_asan/platform_specific/utilities_posix.cpp
    A compiler-rt/lib/gwp_asan/utilities.cpp
    M compiler-rt/lib/gwp_asan/utilities.h

  Log Message:
  -----------
  [GWP-ASan] Rework utilities (NFC)

Few changes wrt utilities:
- split `Check` into a platform agnostic condition test and a platform
  specific termination, for which we introduce the function `die`.
- add a platform agnostic `utilities.cpp` that gets the allocation
  alignment functions original in the platform specific file, as they
  are reusable by all platforms.

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




More information about the All-commits mailing list