[PATCH] D103562: [NFC][compiler-rt][hwasan] Refactor hwasan functions

Leonard Chan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 2 15:15:36 PDT 2021


leonardchan created this revision.
leonardchan added reviewers: mcgrathr, phosek, eugenis, vitalybuka.
leonardchan added a project: Sanitizers.
Herald added a subscriber: dberris.
leonardchan requested review of this revision.
Herald added a subscriber: Sanitizers.

This moves the implementations for `HandleTagMismatch` and `__hwasan_tag_mismatch4` 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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103562

Files:
  compiler-rt/lib/hwasan/hwasan.cpp
  compiler-rt/lib/hwasan/hwasan.h
  compiler-rt/lib/hwasan/hwasan_linux.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103562.349395.patch
Type: text/x-patch
Size: 5482 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210602/cd793c2c/attachment.bin>


More information about the cfe-commits mailing list