Skip to content

Commit 28383d4

Browse files
committed
Add back a form of parseIntoSourceFile for LLDB.
This is a temporary shim.
1 parent d7f6768 commit 28383d4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

include/swift/Subsystems.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,17 @@ namespace swift {
119119
PersistentParserState *PersistentState = nullptr,
120120
bool DelayBodyParsing = true);
121121

122+
/// DEPRECATED: Only used to break LLDB/Swift dependency.
123+
inline
124+
bool parseIntoSourceFile(SourceFile &SF, unsigned BufferID, bool *Done,
125+
SILParserState *SIL,
126+
PersistentParserState *PersistentState,
127+
std::nullptr_t,
128+
bool DelayBodyParsing) {
129+
return parseIntoSourceFile(SF, BufferID, Done, SIL, PersistentState,
130+
DelayBodyParsing);
131+
}
132+
122133
/// Parse a single buffer into the given source file, until the full source
123134
/// contents are parsed.
124135
///

0 commit comments

Comments
 (0)