summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2017-09-13 08:10:16 +0000
committerVitaly Buka <vitalybuka@google.com>2017-09-13 08:10:16 +0000
commitc40f5ceca06e79cfdb648144638a7f14bb5ec388 (patch)
tree00dbbf3b71a8a7887aadb2ce30b69ae94459b279
parent34fc973b08e16b7da5ca614ea5b8911b218f80e5 (diff)
downloadbcm5719-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.cc2
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);
OpenPOWER on IntegriCloud