We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdacff5 commit fbc9e5cCopy full SHA for fbc9e5c
Sources/_SwiftSyntaxCShims/wasm_support.c
@@ -18,10 +18,13 @@
18
#define _STR(X) #X
19
#define STR(X) _STR(X)
20
21
-// this must be a metadata section rather than a data section so we can't
22
-// use __attribute__((section)) for it
+// LLVM has special-cased handling to map .custom_section.foo to
+// Wasm Custom Section "foo". this must be a metadata section rather
23
+// than a data section so we can't use __attribute__((section)) for it.
24
+// See: https://reviews.llvm.org/D43097
25
__asm__("\t.section .custom_section.swift_wasm_macro_abi,\"\",@\n\t.4byte " STR(SWIFT_WASM_ABI_VERSION_RAW) "\n");
26
27
+// defined in CompilerPlugin.swift
28
void _swift_wasm_macro_pump(void);
29
30
__attribute__((export_name("swift_wasm_macro_pump")))
0 commit comments