Skip to content

Commit

Permalink
Added an explicatory comment, thanks to Dmitri Gribenko for the sugge…
Browse files Browse the repository at this point in the history
…stion.
  • Loading branch information
scallanan committed Aug 10, 2016
1 parent 8ab85d7 commit 694ef45
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stdlib/public/core/DebuggerSupport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,9 @@ public enum _DebuggerSupport {
}
}

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

0 comments on commit 694ef45

Please sign in to comment.