[libcxxabi] Define _LIBCXXABI_GUARD_ABI_ARM on WebAssembly

This matches ItaniumCXXABI.cpp.

Fixes PR42680

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

llvm-svn: 368783
This commit is contained in:
Sam Clegg 2019-08-14 01:30:48 +00:00
parent b6946a2d12
commit cee41ce223

View File

@ -71,7 +71,8 @@
#define _LIBCXXABI_NO_CFI
#endif
#if defined(__arm__)
// wasm32 follows the arm32 ABI convention of using 32-bit guard.
#if defined(__arm__) || defined(__wasm32__)
# define _LIBCXXABI_GUARD_ABI_ARM
#endif