Revert "[sanitizers] read/write page fault detection on mac."

This reverts commit r267477.
It broke our bots that enables the AArch64 backends, it seems that
this code is using a Darwin *X86 specific* field.

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 267526
This commit is contained in:
Mehdi Amini 2016-04-26 07:03:11 +00:00
parent 65c133272e
commit 9163f4997a
2 changed files with 1 additions and 2 deletions

View File

@ -500,8 +500,7 @@ void LogFullErrorReport(const char *buffer) {
}
SignalContext::WriteFlag SignalContext::GetWriteFlag(void *context) {
ucontext_t *ucontext = static_cast<ucontext_t*>(context);
return ucontext->uc_mcontext->__es.__err & 2 /*T_PF_WRITE*/ ? WRITE : READ;
return UNKNOWN; // FIXME: implement this.
}
void GetPcSpBp(void *context, uptr *pc, uptr *sp, uptr *bp) {