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.
1 parent 36c4205 commit e0f26adCopy full SHA for e0f26ad
lib/SIL/SILPrinter.cpp
@@ -2215,6 +2215,14 @@ void SILBasicBlock::dump() const {
2215
/// Pretty-print the SILBasicBlock to the designated stream.
2216
void SILBasicBlock::print(raw_ostream &OS) const {
2217
SILPrintContext Ctx(OS);
2218
+
2219
+ // Print the debug scope (and compute if we didn't do it already).
2220
+ auto &SM = this->getParent()->getModule().getASTContext().SourceMgr;
2221
+ for (auto &I : *this) {
2222
+ SILPrinter P(Ctx);
2223
+ P.printDebugScope(I.getDebugScope(), SM);
2224
+ }
2225
2226
SILPrinter(Ctx).print(this);
2227
}
2228
0 commit comments