[compiler-rt] r313130 - [compiler-rt] Compile signal specific functions only for !SANITIZER_GO
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 13 01:10:16 PDT 2017
Author: vitalybuka
Date: Wed Sep 13 01:10:16 2017
New Revision: 313130
URL: http://llvm.org/viewvc/llvm-project?rev=313130&view=rev
Log:
[compiler-rt] Compile signal specific functions only for !SANITIZER_GO
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_libcdep.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_libcdep.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_libcdep.cc?rev=313130&r1=313129&r2=313130&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_libcdep.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_libcdep.cc Wed Sep 13 01:10:16 2017
@@ -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);
More information about the llvm-commits
mailing list