tsan: print statistics about benign race annotations
(total count, unique, matched) if requested with print_benign=1
flag.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178245 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/tsan/rtl/tsan_rtl.cc b/lib/tsan/rtl/tsan_rtl.cc
index 28113c6..0046dbe 100644
--- a/lib/tsan/rtl/tsan_rtl.cc
+++ b/lib/tsan/rtl/tsan_rtl.cc
@@ -279,6 +279,10 @@
if (flags()->print_suppressions)
PrintMatchedSuppressions();
+#ifndef TSAN_GO
+ if (flags()->print_benign)
+ PrintMatchedBenignRaces();
+#endif
failed = OnFinalize(failed);