[sanitizer] Don't define common ReportDeadlySignal on Fuchsia

This causes a linker error because of duplicate symbol since
ReportDeadlySignal is defined both in sanitizer_common_libcdep and
sanitizer_fuchsia.

Differential Revision: https://reviews.llvm.org/D37952

llvm-svn: 313641
This commit is contained in:
Petr Hosek 2017-09-19 17:00:22 +00:00
parent 86c74dd791
commit 5995e71a37
1 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ void BackgroundThread(void *arg) {
}
#endif
#if !SANITIZER_GO
#if !SANITIZER_FUCHSIA && !SANITIZER_GO
void StartReportDeadlySignal() {
// Write the first message using fd=2, just in case.
// It may actually fail to write in case stderr is closed.
@ -254,7 +254,7 @@ void ReportDeadlySignal(const SignalContext &sig, u32 tid,
else
ReportDeadlySignalImpl(sig, tid, unwind, unwind_context);
}
#endif // !SANITIZER_GO
#endif // !SANITIZER_FUCHSIA && !SANITIZER_GO
void WriteToSyslog(const char *msg) {
InternalScopedString msg_copy(kErrorMessageBufferSize);