mirror of
https://github.com/apple/swift-collections
synced 2026-11-22 04:20:40 +00:00
[BasicContainers] Don’t define LLDB formatter symbol on Wasm
While we’re here, follow our explicit access control rule when defining the variable.
This commit is contained in:
2 files changed
+4
-4
No files matched your search
@@ -13,14 +13,14 @@
|
||||
|
||||
// Generated with: ./Utils/Debugger/generate_formatters.sh
|
||||
|
||||
#if swift(>=6.3)
|
||||
#if compiler(>=6.3) && !objectFormat(Wasm)
|
||||
#if objectFormat(MachO)
|
||||
@section("__DATA_CONST,__lldbformatters")
|
||||
#else
|
||||
@section(".lldbformatters")
|
||||
#endif
|
||||
@used
|
||||
let `^(BasicContainers|Collections(Internal)?)[.]RigidArray<.+>$ formatter`: (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8) = (
|
||||
@usableFromInline internal let `^(BasicContainers|Collections(Internal)?)[.]RigidArray<.+>$ formatter`: (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8) = (
|
||||
// version
|
||||
0x01,
|
||||
// remaining record size
|
||||
|
||||
@@ -340,7 +340,7 @@ class BytecodeSection:
|
||||
print(
|
||||
textwrap.dedent(
|
||||
"""\
|
||||
#if swift(>=6.3)
|
||||
#if compiler(>=6.3) && !objectFormat(Wasm)
|
||||
#if objectFormat(MachO)
|
||||
@section("__DATA_CONST,__lldbformatters")
|
||||
#else
|
||||
@@ -351,7 +351,7 @@ class BytecodeSection:
|
||||
file=output,
|
||||
)
|
||||
print(
|
||||
f"let `{self.type_name} formatter`: {builder.type_decl} = (",
|
||||
f"@usableFromInline internal let `{self.type_name} formatter`: {builder.type_decl} = (",
|
||||
file=output,
|
||||
)
|
||||
indent = " "
|
||||
|
||||
Reference in new issue
Block a user