[Sanitizers] [MinGW] Check for __i386__ in addition to _M_IX86 for i386 specific...
authorMartin Storsjo <martin@martin.st>
Tue, 25 Sep 2018 19:50:32 +0000 (19:50 +0000)
committerMartin Storsjo <martin@martin.st>
Tue, 25 Sep 2018 19:50:32 +0000 (19:50 +0000)
commitfd9aa7e078a3b0ad486897dacba75b3c5207e352
treeb6e47d8f95bafb47fe80d31c45d516a32abca494
parentadde5ba4b20225e2cad18e22705bb434217666c1
[Sanitizers] [MinGW] Check for __i386__ in addition to _M_IX86 for i386 specific details

The MinGW headers do define _M_IX86 (contrary to clang-cl and
MSVC where it is a compiler predefined macro), but the headers that
define it aren't included here.

Also check these defines for setting the symbol prefix, instead of
inconsistently using _WIN64 for that.

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

llvm-svn: 343013
compiler-rt/lib/sanitizer_common/sanitizer_win_defs.h