Skip to content

Commit 50724aa

Browse files
authored
Merge pull request #4258 from scallanan/swift-3.0-branch
Merged the stringForPrintObject change now that tests pass.
2 parents 2613b73 + 567602b commit 50724aa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stdlib/public/core/DebuggerSupport.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,10 @@ 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.
289+
@_semantics("stdlib_binary_only")
286290
public static func stringForPrintObject(_ value: Any) -> String {
287291
var maxItemCounter = Int.max
288292
var refs = Set<ObjectIdentifier>()

0 commit comments

Comments
 (0)