[hwasan] Fix HWASAN_WITH_INTERCEPTORS=OFF build on not-android.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Fri, 3 May 2019 18:20:16 +0000 (18:20 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Fri, 3 May 2019 18:20:16 +0000 (18:20 +0000)
commitc4bfa0d662ff8c5e622ab815714ad921266d94af
tree462beddc307fbb3e11d89931958150f476461ee6
parent639b3d1b83bf98fb0d96ba2c8cce1859707a7edf
[hwasan] Fix HWASAN_WITH_INTERCEPTORS=OFF build on not-android.

Summary:
I'm not aware of any platforms where this will work, but the code should at least compile.
HWASAN_WITH_INTERCEPTORS=OFF means there is magic in libc that would call __hwasan_thread_enter /
__hwasan_thread_exit as appropriate.

Reviewers: pcc, winksaville

Subscribers: srhines, kubamracek, #sanitizers, llvm-commits

Tags: #sanitizers, #llvm

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

llvm-svn: 359914
compiler-rt/lib/hwasan/hwasan_linux.cpp