diff options
| author | Vitaly Buka <vitalybuka@google.com> | 2017-09-13 08:10:16 +0000 |
|---|---|---|
| committer | Vitaly Buka <vitalybuka@google.com> | 2017-09-13 08:10:16 +0000 |
| commit | c40f5ceca06e79cfdb648144638a7f14bb5ec388 (patch) | |
| tree | 00dbbf3b71a8a7887aadb2ce30b69ae94459b279 | |
| parent | 34fc973b08e16b7da5ca614ea5b8911b218f80e5 (diff) | |
| download | bcm5719-llvm-c40f5ceca06e79cfdb648144638a7f14bb5ec388.tar.gz bcm5719-llvm-c40f5ceca06e79cfdb648144638a7f14bb5ec388.zip | |
[compiler-rt] Compile signal specific functions only for !SANITIZER_GO
llvm-svn: 313130
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cc b/compiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cc index cccb3be3e24..21a591e648f 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cc @@ -147,6 +147,7 @@ void BackgroundThread(void *arg) { } #endif +#if !SANITIZER_GO void MaybeReportNonExecRegion(uptr pc) { #if SANITIZER_FREEBSD || SANITIZER_LINUX || SANITIZER_NETBSD MemoryMappingLayout proc_maps(/*cache_enabled*/ true); @@ -185,6 +186,7 @@ void MaybeDumpRegisters(void *context) { if (!common_flags()->dump_registers) return; SignalContext::DumpAllRegisters(context); } +#endif void WriteToSyslog(const char *msg) { InternalScopedString msg_copy(kErrorMessageBufferSize); |

