Fix linker warning about sanitizer_common_nolibc functions on Windows

llvm-svn: 280962
This commit is contained in:
Reid Kleckner 2016-09-08 16:46:06 +00:00
parent fbfd828d2a
commit 490ccc9cc7
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,9 @@
namespace __sanitizer {
// The Windows implementations of these functions use the win32 API directly,
// bypassing libc.
#if !SANITIZER_WINDOWS
#if SANITIZER_LINUX
bool ShouldLogAfterPrintf() { return false; }
void LogMessageOnPrintf(const char *str) {}
@ -24,5 +27,6 @@ void LogMessageOnPrintf(const char *str) {}
void WriteToSyslog(const char *buffer) {}
void Abort() { internal__exit(1); }
void SleepForSeconds(int seconds) { internal_sleep(seconds); }
#endif // !SANITIZER_WINDOWS
} // namespace __sanitizer