[compiler-rt] r201421 - LSan: Print warning about dynamic linker only in verbose mode

Alexey Samsonov samsonov at google.com
Fri Feb 14 07:12:46 PST 2014


Author: samsonov
Date: Fri Feb 14 09:12:46 2014
New Revision: 201421

URL: http://llvm.org/viewvc/llvm-project?rev=201421&view=rev
Log:
LSan: Print warning about dynamic linker only in verbose mode

Modified:
    compiler-rt/trunk/lib/lsan/lsan_common_linux.cc

Modified: compiler-rt/trunk/lib/lsan/lsan_common_linux.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/lsan/lsan_common_linux.cc?rev=201421&r1=201420&r2=201421&view=diff
==============================================================================
--- compiler-rt/trunk/lib/lsan/lsan_common_linux.cc (original)
+++ compiler-rt/trunk/lib/lsan/lsan_common_linux.cc Fri Feb 14 09:12:46 2014
@@ -19,6 +19,7 @@
 #include <link.h>
 
 #include "sanitizer_common/sanitizer_common.h"
+#include "sanitizer_common/sanitizer_flags.h"
 #include "sanitizer_common/sanitizer_linux.h"
 #include "sanitizer_common/sanitizer_stackdepot.h"
 
@@ -43,11 +44,11 @@ void InitializePlatformSpecificModules()
     return;
   }
   if (num_matches == 0)
-    Report("LeakSanitizer: Dynamic linker not found. "
-           "TLS will not be handled correctly.\n");
+    VReport(1, "LeakSanitizer: Dynamic linker not found. "
+            "TLS will not be handled correctly.\n");
   else if (num_matches > 1)
-    Report("LeakSanitizer: Multiple modules match \"%s\". "
-           "TLS will not be handled correctly.\n", kLinkerName);
+    VReport(1, "LeakSanitizer: Multiple modules match \"%s\". "
+            "TLS will not be handled correctly.\n", kLinkerName);
   linker = 0;
 }
 





More information about the llvm-commits mailing list