Skip to content

Commit 9305330

Browse files
committed
rename SWIFT_WASM_ABI_VERSION_RAW
1 parent 4a58104 commit 9305330

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/_SwiftSyntaxCShims/wasm_support.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#if defined(__wasm32__)
1414

1515
// uint32_t
16-
#define SWIFT_WASM_ABI_VERSION_RAW 1
16+
#define SWIFT_WASM_MACRO_ABI 1
1717

1818
#define _STR(X) #X
1919
#define STR(X) _STR(X)
@@ -22,7 +22,7 @@
2222
// Wasm Custom Section "foo". this must be a metadata section rather
2323
// than a data section so we can't use __attribute__((section)) for it.
2424
// 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");
25+
__asm__("\t.section .custom_section.swift_wasm_macro_abi,\"\",@\n\t.4byte " STR(SWIFT_WASM_MACRO_ABI) "\n");
2626

2727
// defined in CompilerPlugin.swift
2828
void _swift_wasm_macro_pump(void);

0 commit comments

Comments
 (0)