[hwasan] Remove allocator interceptors.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Thu, 6 Sep 2018 22:53:08 +0000 (22:53 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Thu, 6 Sep 2018 22:53:08 +0000 (22:53 +0000)
commitfe4808eba7f2d15dba69e625722c24bec3d1f156
tree03ea0c374af0a660e72239cb0d2a5e7e4e3bf56f
parent54d898e7d50038cd21d7fddc93df129a34e134dc
[hwasan] Remove allocator interceptors.

Summary:
When building without COMPILER_RT_HWASAN_WITH_INTERCEPTORS, skip
interceptors for malloc/free/etc and only export their versions with
__sanitizer_ prefix.

Also remove a hack in mallinfo() interceptor that does not apply to
hwasan.

Reviewers: kcc

Subscribers: kubamracek, krytarowski, llvm-commits

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

llvm-svn: 341598
compiler-rt/lib/hwasan/hwasan_interceptors.cc
compiler-rt/lib/hwasan/hwasan_interface_internal.h
compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h