Rename tsan_interceptors.cpp into tsan_interceptors_posix.cpp

Summary:
It's needed to use __GLIBC_PREREQ from <features.h>

tsan didn't let us to include <features.h> by using --sysroot=. to disable system includes on
anything that is not named as "tsan*posix*", "tsan*mac*", "tsan*linux*".
See compiler-rt/lib/tsan/CMakeLists.txt

Reviewers: eugenis, dvyukov, kcc

Reviewed By: kcc

Subscribers: mgorny, #sanitizers, llvm-commits

Tags: #sanitizers, #llvm

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

llvm-svn: 373282
This commit is contained in:
Vitaly Buka 2019-10-01 00:58:26 +00:00
parent 9f42a1231e
commit f74f5f2568
3 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ set(TSAN_SOURCES
rtl/tsan_fd.cpp
rtl/tsan_flags.cpp
rtl/tsan_ignoreset.cpp
rtl/tsan_interceptors.cpp
rtl/tsan_interceptors_posix.cpp
rtl/tsan_interface.cpp
rtl/tsan_interface_ann.cpp
rtl/tsan_interface_atomic.cpp

View File

@ -1,4 +1,4 @@
//===-- tsan_interceptors.cpp ---------------------------------------------===//
//===-- tsan_interceptors_posix.cpp ---------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.

View File

@ -298,7 +298,7 @@ static bool FrameIsInternal(const SymbolizedStack *frame) {
const char *file = frame->info.file;
const char *module = frame->info.module;
if (file != 0 &&
(internal_strstr(file, "tsan_interceptors.cpp") ||
(internal_strstr(file, "tsan_interceptors_posix.cpp") ||
internal_strstr(file, "sanitizer_common_interceptors.inc") ||
internal_strstr(file, "tsan_interface_")))
return true;