@@ -166,6 +166,7 @@ int swift_symbolgraph_extract_main(ArrayRef<const char *> Args,
166166 ParsedArgs.hasArg (OPT_pretty_print),
167167 AccessLevel::Public,
168168 !ParsedArgs.hasArg (OPT_skip_synthesized_members),
169+ ParsedArgs.hasArg (OPT_v),
169170 };
170171
171172 if (auto *A = ParsedArgs.getLastArg (OPT_minimum_access_level)) {
@@ -218,7 +219,9 @@ int swift_symbolgraph_extract_main(ArrayRef<const char *> Args,
218219 }
219220
220221 const auto &MainFile = M->getMainFile (FileUnitKind::SerializedAST);
221- llvm::errs () << " Emitting symbol graph for module file: " << MainFile.getModuleDefiningPath () << ' \n ' ;
222+
223+ if (Options.PrintMessages )
224+ llvm::errs () << " Emitting symbol graph for module file: " << MainFile.getModuleDefiningPath () << ' \n ' ;
222225
223226 int Success = symbolgraphgen::emitSymbolGraphForModule (M, Options);
224227
@@ -236,8 +239,10 @@ int swift_symbolgraph_extract_main(ArrayRef<const char *> Args,
236239 auto CIM = CI.getASTContext ().getModuleByName (OM->getNameStr ());
237240 if (CIM) {
238241 const auto &CIMainFile = CIM->getMainFile (FileUnitKind::SerializedAST);
239- llvm::errs () << " Emitting symbol graph for cross-import overlay module file: "
240- << CIMainFile.getModuleDefiningPath () << ' \n ' ;
242+
243+ if (Options.PrintMessages )
244+ llvm::errs () << " Emitting symbol graph for cross-import overlay module file: "
245+ << CIMainFile.getModuleDefiningPath () << ' \n ' ;
241246
242247 Success |= symbolgraphgen::emitSymbolGraphForModule (CIM, Options);
243248 }
0 commit comments