[libcxx-commits] [PATCH] D64961: [libcxxabi] Define _LIBCXXABI_GUARD_ABI_ARM on WebAssembly

Sam Clegg via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Aug 13 10:42:49 PDT 2019


sbc100 updated this revision to Diff 214878.
sbc100 added a comment.

- add comment


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64961/new/

https://reviews.llvm.org/D64961

Files:
  libcxxabi/include/__cxxabi_config.h


Index: libcxxabi/include/__cxxabi_config.h
===================================================================
--- libcxxabi/include/__cxxabi_config.h
+++ libcxxabi/include/__cxxabi_config.h
@@ -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
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64961.214878.patch
Type: text/x-patch
Size: 426 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190813/edd11879/attachment.bin>


More information about the libcxx-commits mailing list