Skip to content

Commit fe48ff1

Browse files
[lldb] Update calls to SILModule::print to use SILOptions.
See also: swiftlang/swift#29239
1 parent 5e36806 commit fe48ff1

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

lldb/source/Plugins/ExpressionParser/Swift/SwiftExpressionParser.cpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1644,8 +1644,9 @@ unsigned SwiftExpressionParser::Parse(DiagnosticManager &diagnostic_manager,
16441644
if (log) {
16451645
std::string s;
16461646
llvm::raw_string_ostream ss(s);
1647-
const bool verbose = false;
1648-
sil_module->print(ss, verbose, &parsed_expr->module);
1647+
swift::SILOptions silOpts;
1648+
silOpts.EmitVerboseSIL = false;
1649+
sil_module->print(ss, &parsed_expr->module, silOpts);
16491650
ss.flush();
16501651

16511652
log->Printf("SIL module before linking:");
@@ -1660,8 +1661,9 @@ unsigned SwiftExpressionParser::Parse(DiagnosticManager &diagnostic_manager,
16601661
if (log) {
16611662
std::string s;
16621663
llvm::raw_string_ostream ss(s);
1663-
const bool verbose = false;
1664-
sil_module->print(ss, verbose, &parsed_expr->module);
1664+
swift::SILOptions silOpts;
1665+
silOpts.EmitVerboseSIL = false;
1666+
sil_module->print(ss, &parsed_expr->module, silOpts);
16651667
ss.flush();
16661668

16671669
log->Printf("Generated SIL module:");
@@ -1674,8 +1676,9 @@ unsigned SwiftExpressionParser::Parse(DiagnosticManager &diagnostic_manager,
16741676
if (log) {
16751677
std::string s;
16761678
llvm::raw_string_ostream ss(s);
1677-
const bool verbose = false;
1678-
sil_module->print(ss, verbose, &parsed_expr->module);
1679+
swift::SILOptions silOpts;
1680+
silOpts.EmitVerboseSIL = false;
1681+
sil_module->print(ss, &parsed_expr->module, silOpts);
16791682
ss.flush();
16801683

16811684
log->Printf("SIL module after diagnostic passes:");

0 commit comments

Comments
 (0)