[compiler-rt][hwasan] Refactor kAliasRegionStart usage
authorLeonard Chan <leonardchan@google.com>
Fri, 9 Jul 2021 20:41:48 +0000 (13:41 -0700)
committerLeonard Chan <leonardchan@google.com>
Mon, 12 Jul 2021 23:33:05 +0000 (16:33 -0700)
commit189c55251849076e17ddab590c1302f4af0e60f8
tree8574cda0460470e9e7e86897609188410e22e202
parent98033fdc50e61273b1d5c77ba5f0f75afe3965c1
[compiler-rt][hwasan] Refactor kAliasRegionStart usage

This moves logic for setting kAliasRegionStart into hwasan_allocator.cpp
so other platforms that do not support aliasing mode will not need to define
kAliasRegionStart.

Differential Revision: https://reviews.llvm.org/D105725
compiler-rt/lib/hwasan/hwasan_allocator.cpp
compiler-rt/lib/hwasan/hwasan_linux.cpp
compiler-rt/lib/hwasan/hwasan_mapping.h