[libcxx-commits] [PATCH] D59921: [libunwind] Export the unw_*	symbols as weak symbols
    Martin Storsjö via Phabricator via libcxx-commits 
    libcxx-commits at lists.llvm.org
       
    Mon Apr  1 01:35:11 PDT 2019
    
    
  
mstorsjo added inline comments.
================
Comment at: libunwind/src/assembly.h:107
+#define WEAK_ALIAS(name, aliasname)                                            \
+  EXPORT_SYMBOL(SYMBOL_NAME(aliasname)) SEPARATOR                              \
+  WEAK_ALIAS2(SYMBOL_NAME(name), SYMBOL_NAME(aliasname))
----------------
Ok, folding the msvc specific `SYMBOL_NAME()` here seems to work fine. If there were other places where this macro is used, it might have been good to factorize it in there, but this seems to work.
This version of the patch seems to be ok wrt all windows configurations, as far as I can see.
(I don't have a windows-itanium setup available for testing easily, and making clang-cl build this requires a few other hacks, but I managed to get these aspects tested.)
Repository:
  rUNW libunwind
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59921/new/
https://reviews.llvm.org/D59921
    
    
More information about the libcxx-commits
mailing list