Skip to content

Commit 823d3d4

Browse files
committed
[NFC] Indicate foreign modules in AST dumps
1 parent 35bc2f3 commit 823d3d4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/AST/ASTDumper.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,6 +1259,10 @@ namespace {
12591259

12601260
void visitModuleDecl(ModuleDecl *MD) {
12611261
printCommon(MD, "module");
1262+
1263+
if (MD->isNonSwiftModule())
1264+
OS << " non_swift";
1265+
12621266
PrintWithColorRAII(OS, ParenthesisColor) << ')';
12631267
}
12641268

0 commit comments

Comments
 (0)