llvm-project/compiler-rt/lib
Kamil Rytarowski 90b46353e7 [Sanitizers] Use SANITIZER_* macros in lib/interception
Summary:
Unlike the rest of the sanitizer code, lib/interception uses native macros like __linux__
to check for specific targets instead of the common ones like SANITIZER_LINUX.

When working on the Solaris port of the sanitizers, the current style was found to not
only be inconsistent, but clumsy to use because the canonical way to check for Solaris
is to check for __sun__ && __svr4__ which is a mouthful.

Therefore, this patch switches to use SANITIZER_* macros instead.

Tested on x86_64-pc-linux-gnu.

Reviewers: kcc, vitalybuka

Reviewed By: vitalybuka

Subscribers: #sanitizers, srhines, krytarowski, llvm-commits, fedor.sergeev

Tags: #sanitizers

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

llvm-svn: 319906
2017-12-06 17:02:00 +00:00
..
BlocksRuntime [compiler-rt] Test commit: remove some trailing white spaces. 2017-08-25 19:36:30 +00:00
asan [ASan] Enhance libsanitizer support for invalid-pointer-pair. 2017-12-04 18:00:24 +00:00
builtins Add powerpc64 to compiler-rt build infrastructure. 2017-11-30 21:04:11 +00:00
cfi (NFC) Rename GetMax{,User}VirtualAddress. 2017-11-07 23:51:22 +00:00
dfsan [sanitizer_common] Move filesystem-related code out of sanitizer_common.cc 2017-07-22 01:46:40 +00:00
esan [esan] Fix compilation of signal handlers 2017-11-10 05:41:13 +00:00
fuzzer [libFuzzer] Make redirects happen in proper sequence. 2017-12-05 17:13:17 +00:00
interception [Sanitizers] Use SANITIZER_* macros in lib/interception 2017-12-06 17:02:00 +00:00
lsan Detect thread termination in LSan/NetBSD 2017-11-26 09:42:01 +00:00
msan Fix typo fcvr -> fcvt and attempt to unbreak MSan/!NetBSD 2017-12-06 01:44:41 +00:00
profile [profile] Update InstrProfData.inc to sync with llvm 2017-11-14 23:57:58 +00:00
safestack Enable SafeStack on NetBSD 2017-08-10 18:40:09 +00:00
sanitizer_common [sanitizer] 64-bit allocator's PopulateFreeArray partial refactor 2017-12-04 18:56:38 +00:00
scudo [scudo] Correct performance regression in Secondary 2017-12-06 16:53:24 +00:00
stats Support compiler-rt builtins 2017-07-28 03:39:38 +00:00
tsan Move __tsan::Vector to __sanitizer 2017-12-04 12:30:09 +00:00
ubsan [sanitizers] Rename GetStackTraceWithPcBpAndContext 2017-11-09 07:53:06 +00:00
ubsan_minimal [ubsan-minimal] Get rid of the libc++ dependency. 2017-11-11 02:32:02 +00:00
xray [compiler-rt][xray][cmake] Fix a build issue caused by set/item mixup 2017-12-06 14:03:41 +00:00
CMakeLists.txt [cmake] Add a separate CMake var to control profile runtime 2017-10-02 05:03:55 +00:00