[PATCH] D51508: Export public functions implemented in assembly on Windows.

Charles Davis via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 31 06:56:40 PDT 2018

cdavis5x added inline comments.

Comment at: src/assembly.h:76-78
+  .section .drectve,"yn" SEPARATOR                        \
+  .ascii "-export:", #name, "\0" SEPARATOR                \
+  .text
rnk wrote:
> Maybe .pushsection / .popsection is better than assuming you were in .text.
I initially wanted to do that, but those directives aren't supported by COFF. Neither, by the way, is `.previous`. Perhaps this needs to be fixed in LLVM.

  rUNW libunwind


More information about the cfe-commits mailing list