Skip to content

Commit e21c0a6

Browse files
committed
[sil] Teach variable name inference how to look through more instructions.
1 parent f296529 commit e21c0a6

File tree

3 files changed

+565
-63
lines changed

3 files changed

+565
-63
lines changed

include/swift/SILOptimizer/Utils/VariableNameUtils.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,16 @@ class VariableNameInferrer {
125125

126126
private:
127127
void drainVariableNamePath();
128+
void popSingleVariableName();
128129

129130
/// Finds the SILValue that either provides the direct debug information or
130131
/// that has a debug_value user that provides the name of the value.
131132
SILValue findDebugInfoProvidingValue(SILValue searchValue);
132133

134+
/// Do not call this directly. Used just to improve logging for
135+
/// findDebugInfoProvidingValue.
136+
SILValue findDebugInfoProvidingValueHelper(SILValue searchValue);
137+
133138
/// Given an initialized once allocation inst without a ValueDecl or a
134139
/// DebugVariable provided name, attempt to find a root value from its
135140
/// initialization.

0 commit comments

Comments
 (0)