Skip to content

Commit fc76305

Browse files
varungandhi-appleJDevlieghere
authored andcommitted
[lldb] Update calls to SILModule::print to use SILOptions.
See also: swiftlang/swift#29239 (cherry picked from commit fe48ff1)
1 parent 32fcba5 commit fc76305

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
@@ -1651,8 +1651,9 @@ unsigned SwiftExpressionParser::Parse(DiagnosticManager &diagnostic_manager,
16511651
if (log) {
16521652
std::string s;
16531653
llvm::raw_string_ostream ss(s);
1654-
const bool verbose = false;
1655-
sil_module->print(ss, verbose, &parsed_expr->module);
1654+
swift::SILOptions silOpts;
1655+
silOpts.EmitVerboseSIL = false;
1656+
sil_module->print(ss, &parsed_expr->module, silOpts);
16561657
ss.flush();
16571658

16581659
log->Printf("SIL module before linking:");
@@ -1667,8 +1668,9 @@ unsigned SwiftExpressionParser::Parse(DiagnosticManager &diagnostic_manager,
16671668
if (log) {
16681669
std::string s;
16691670
llvm::raw_string_ostream ss(s);
1670-
const bool verbose = false;
1671-
sil_module->print(ss, verbose, &parsed_expr->module);
1671+
swift::SILOptions silOpts;
1672+
silOpts.EmitVerboseSIL = false;
1673+
sil_module->print(ss, &parsed_expr->module, silOpts);
16721674
ss.flush();
16731675

16741676
log->Printf("Generated SIL module:");
@@ -1681,8 +1683,9 @@ unsigned SwiftExpressionParser::Parse(DiagnosticManager &diagnostic_manager,
16811683
if (log) {
16821684
std::string s;
16831685
llvm::raw_string_ostream ss(s);
1684-
const bool verbose = false;
1685-
sil_module->print(ss, verbose, &parsed_expr->module);
1686+
swift::SILOptions silOpts;
1687+
silOpts.EmitVerboseSIL = false;
1688+
sil_module->print(ss, &parsed_expr->module, silOpts);
16861689
ss.flush();
16871690

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

0 commit comments

Comments
 (0)