[compiler-rt] r229390 - tsan: exclude DumpProcessMap on windows

Dmitry Vyukov dvyukov at google.com
Mon Feb 16 05:51:17 PST 2015


Author: dvyukov
Date: Mon Feb 16 07:51:17 2015
New Revision: 229390

URL: http://llvm.org/viewvc/llvm-project?rev=229390&view=rev
Log:
tsan: exclude DumpProcessMap on windows

The function uses EnumProcessModules, which requires psapi.lib,
which is not linked with tsan on windows.


Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc?rev=229390&r1=229389&r2=229390&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc Mon Feb 16 07:51:17 2015
@@ -219,6 +219,7 @@ int CompareModulesBase(const void *pl, c
 }
 }  // namespace
 
+#ifndef SANITIZER_GO
 void DumpProcessMap() {
   Report("Dumping process modules:\n");
   HANDLE cur_process = GetCurrentProcess();
@@ -276,6 +277,7 @@ void DumpProcessMap() {
   }
   UnmapOrDie(modules, num_modules * sizeof(ModuleInfo));
 }
+#endif
 
 void DisableCoreDumperIfNecessary() {
   // Do nothing.





More information about the llvm-commits mailing list