Skip to content

Commit afe416f

Browse files
committed
[stdlib] Make the stringForPrintObject function not inlined by default.
Inlining it causes the lldb "po" command to generate a 50KB binary blob that needs to be injected into the target process. It is much faster to just call into the standard-library binary. <rdar://problem/27710066>
1 parent ff1875f commit afe416f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/DebuggerSupport.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ public enum _DebuggerSupport {
283283
}
284284
}
285285

286-
public static func stringForPrintObject(_ value: Any) -> String {
286+
@_semantics("stdlib_binary_only") public static func stringForPrintObject(_ value: Any) -> String {
287287
var maxItemCounter = Int.max
288288
var refs = Set<ObjectIdentifier>()
289289
var targetStream = ""

0 commit comments

Comments
 (0)