Skip to content

Commit 567602b

Browse files
committed
Added an explicatory comment, thanks to Dmitri Gribenko for the suggestion.
1 parent ea1f835 commit 567602b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stdlib/public/core/DebuggerSupport.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,9 @@ public enum _DebuggerSupport {
283283
}
284284
}
285285

286+
// LLDB uses this function in expressions, and if it is inlined the resulting
287+
// LLVM IR is enormous. As a result, to improve LLDB performance we have made
288+
// this stdlib_binary_only, which prevents inlining.
286289
@_semantics("stdlib_binary_only")
287290
public static func stringForPrintObject(_ value: Any) -> String {
288291
var maxItemCounter = Int.max

0 commit comments

Comments
 (0)