[PATCH] D55537: Should not export public functions implemented in assembly when build static lib on Windows
Peiyuan Song via Phabricator
reviews at reviews.llvm.org
Mon Dec 10 18:06:02 PST 2018
SquallATF created this revision.
SquallATF added a reviewer: mstorsjo.
Herald added subscribers: libcxx-commits, christof.
Repository:
rUNW libunwind
https://reviews.llvm.org/D55537
Files:
src/assembly.h
Index: src/assembly.h
===================================================================
--- src/assembly.h
+++ src/assembly.h
@@ -76,7 +76,11 @@
.section .drectve,"yn" SEPARATOR \
.ascii "-export:", #name, "\0" SEPARATOR \
.text
+#if defined(_LIBUNWIND_DISABLE_VISIBILITY_ANNOTATIONS)
+#define EXPORT_SYMBOL(name)
+#else
#define EXPORT_SYMBOL(name) EXPORT_SYMBOL2(name)
+#endif
#define HIDDEN_SYMBOL(name)
#define NO_EXEC_STACK_DIRECTIVE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55537.177638.patch
Type: text/x-patch
Size: 492 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20181211/2bb2f695/attachment.bin>
More information about the libcxx-commits
mailing list