summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2015-05-08 21:32:03 +0000
committerKostya Serebryany <kcc@google.com>2015-05-08 21:32:03 +0000
commit8fd66a71c432d90e07fb15cc27955a1fb270abb7 (patch)
tree4d515d5d994178dcbf6838eb2b196af78f642e22 /compiler-rt/lib
parent1ac8055bc7dd625bfe92f0d7f48f2ed6daa1ccda (diff)
downloadbcm5719-llvm-8fd66a71c432d90e07fb15cc27955a1fb270abb7.tar.gz
bcm5719-llvm-8fd66a71c432d90e07fb15cc27955a1fb270abb7.zip
[asan/fuzzer] define a dummy weak __sanitizer_cov_trace_cmp
llvm-svn: 236907
Diffstat (limited to 'compiler-rt/lib')
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep.cc b/compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep.cc
index 789cf9914c0..f511c996d8c 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep.cc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep.cc
@@ -931,4 +931,7 @@ SANITIZER_INTERFACE_ATTRIBUTE
uptr __sanitizer_update_counter_bitset_and_clear_counters(u8 *bitset) {
return coverage_data.Update8bitCounterBitsetAndClearCounters(bitset);
}
+// Default empty implementation (weak). Users should redefine it.
+SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE
+void __sanitizer_cov_trace_cmp() {}
} // extern "C"
OpenPOWER on IntegriCloud