[compiler-rt] r291071 - [sancov] workaround for absence of weak symbols on win
Mike Aizatsky via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 4 19:48:20 PST 2017
Author: aizatsky
Date: Wed Jan 4 21:48:20 2017
New Revision: 291071
URL: http://llvm.org/viewvc/llvm-project?rev=291071&view=rev
Log:
[sancov] workaround for absence of weak symbols on win
Modified:
compiler-rt/trunk/lib/asan/asan_win.cc
Modified: compiler-rt/trunk/lib/asan/asan_win.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_win.cc?rev=291071&r1=291070&r2=291071&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_win.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_win.cc Wed Jan 4 21:48:20 2017
@@ -54,8 +54,7 @@ void __sanitizer_default_free_hook(void
const char* __asan_default_default_options() { return ""; }
const char* __asan_default_default_suppressions() { return ""; }
void __asan_default_on_error() {}
-// 64-bit msvc will not prepend an underscore for symbols.
-#ifdef _WIN64
+const char* __sancov_default_options() { return ""; }
#pragma comment(linker, "/alternatename:__sanitizer_malloc_hook=__sanitizer_default_malloc_hook") // NOLINT
#pragma comment(linker, "/alternatename:__sanitizer_free_hook=__sanitizer_default_free_hook") // NOLINT
#pragma comment(linker, "/alternatename:__asan_default_options=__asan_default_default_options") // NOLINT
More information about the llvm-commits
mailing list