[compiler-rt] Compile signal specific functions only for !SANITIZER_GO

llvm-svn: 313130
This commit is contained in:
Vitaly Buka 2017-09-13 08:10:16 +00:00
parent 34fc973b08
commit c40f5ceca0
1 changed files with 2 additions and 0 deletions

View File

@ -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);