We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 28a1dc7 + e0f26ad commit 2452ccaCopy full SHA for 2452cca
lib/SIL/SILPrinter.cpp
@@ -2216,6 +2216,14 @@ void SILBasicBlock::dump() const {
2216
/// Pretty-print the SILBasicBlock to the designated stream.
2217
void SILBasicBlock::print(raw_ostream &OS) const {
2218
SILPrintContext Ctx(OS);
2219
+
2220
+ // Print the debug scope (and compute if we didn't do it already).
2221
+ auto &SM = this->getParent()->getModule().getASTContext().SourceMgr;
2222
+ for (auto &I : *this) {
2223
+ SILPrinter P(Ctx);
2224
+ P.printDebugScope(I.getDebugScope(), SM);
2225
+ }
2226
2227
SILPrinter(Ctx).print(this);
2228
}
2229
0 commit comments