[Tsan] Do not declare std_suppressions when not used

Differential Revision: http://reviews.llvm.org/D8288

llvm-svn: 232074
This commit is contained in:
Viktor Kutuzov 2015-03-12 18:14:42 +00:00
parent 07a21dc46d
commit 285dd51b7b
1 changed files with 1 additions and 1 deletions

View File

@ -21,6 +21,7 @@
#include "tsan_mman.h"
#include "tsan_platform.h"
#ifndef SANITIZER_GO
// Suppressions for true/false positives in standard libraries.
static const char *const std_suppressions =
// Libstdc++ 4.4 has data races in std::string.
@ -33,7 +34,6 @@ static const char *const std_suppressions =
"race:std::_Sp_counted_ptr_inplace<std::thread::_Impl\n";
// Can be overriden in frontend.
#ifndef SANITIZER_GO
extern "C" const char *WEAK __tsan_default_suppressions() {
return 0;
}