From 356ecd9bd1c5c10ff776dced80f353839fafb354 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 22 Sep 2021 17:50:54 +0200 Subject: [PATCH] tsan: remove DontDumpShadow from Go build DontDumpShadow is used only in InitializeShadowMemory which is Go-only. Depends on D110263. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D110264 --- compiler-rt/lib/tsan/rtl/tsan_platform_posix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/tsan/rtl/tsan_platform_posix.cpp b/compiler-rt/lib/tsan/rtl/tsan_platform_posix.cpp index 55c2919..763ac44 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_platform_posix.cpp +++ b/compiler-rt/lib/tsan/rtl/tsan_platform_posix.cpp @@ -31,6 +31,7 @@ static const char kShadowMemoryMappingHint[] = "HINT: if %s is not supported in your environment, you may set " "TSAN_OPTIONS=%s=0\n"; +# if !SANITIZER_GO static void DontDumpShadow(uptr addr, uptr size) { if (common_flags()->use_madv_dontdump) if (!DontDumpShadowMemory(addr, size)) { @@ -41,7 +42,6 @@ static void DontDumpShadow(uptr addr, uptr size) { } } -#if !SANITIZER_GO void InitializeShadowMemory() { // Map memory shadow. if (!MmapFixedSuperNoReserve(ShadowBeg(), ShadowEnd() - ShadowBeg(), -- 2.7.4