[compiler-rt] r281679 - [asan] fix window build
Kostya Serebryany via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 15 16:17:03 PDT 2016
Author: kcc
Date: Thu Sep 15 18:17:02 2016
New Revision: 281679
URL: http://llvm.org/viewvc/llvm-project?rev=281679&view=rev
Log:
[asan] fix window build
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_coverage_libcdep.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_coverage_libcdep.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_coverage_libcdep.cc?rev=281679&r1=281678&r2=281679&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_coverage_libcdep.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_coverage_libcdep.cc Thu Sep 15 18:17:02 2016
@@ -1040,6 +1040,7 @@ uptr __sanitizer_update_counter_bitset_a
return coverage_data.Update8bitCounterBitsetAndClearCounters(bitset);
}
// Default empty implementations (weak). Users should redefine them.
+#if !SANITIZER_WINDOWS // weak does not work on Windows.
SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE
void __sanitizer_cov_trace_cmp() {}
SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE
@@ -1064,4 +1065,5 @@ SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_
void __sanitizer_cov_trace_pc_indir() {}
SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE
void __sanitizer_cov_trace_pc_guard_init() {}
+#endif // !SANITIZER_WINDOWS
} // extern "C"
More information about the llvm-commits
mailing list