[all-commits] [llvm/llvm-project] d4e479: [NFC][compiler-rt][hwasan] Refactor hwasan functions

Leonard Chan via All-commits all-commits at lists.llvm.org
Thu Jun 3 14:27:04 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d4e4799998b830c2e41dee93a204870aa65083cf
      https://github.com/llvm/llvm-project/commit/d4e4799998b830c2e41dee93a204870aa65083cf
  Author: Leonard Chan <leonardchan at google.com>
  Date:   2021-06-03 (Thu, 03 Jun 2021)

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

  Log Message:
  -----------
  [NFC][compiler-rt][hwasan] Refactor hwasan functions

This moves the implementations for HandleTagMismatch, __hwasan_tag_mismatch4,
and HwasanAtExit from hwasan_linux.cpp to hwasan.cpp and declares them in hwasan.h.
This way, calls to those functions can be shared with the fuchsia implementation
without duplicating code.

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




More information about the All-commits mailing list