File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,9 @@ static llvm::cl::opt<bool> AbortOnFailure(
6161static llvm::cl::opt<bool > ContinueOnFailure (" verify-continue-on-failure" ,
6262 llvm::cl::init (false ));
6363
64+ static llvm::cl::opt<bool > DumpModuleOnFailure (" verify-dump-module-on-failure" ,
65+ llvm::cl::init (false ));
66+
6467static llvm::cl::opt<bool > VerifyDIHoles (
6568 " verify-di-holes" ,
6669 llvm::cl::init (true ));
@@ -712,8 +715,11 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
712715
713716 llvm::dbgs () << " In function:\n " ;
714717 F.print (llvm::dbgs ());
715- llvm::dbgs () << " In module:\n " ;
716- F.getModule ().print (llvm::dbgs ());
718+ if (DumpModuleOnFailure) {
719+ // Don't do this by default because modules can be _very_ large.
720+ llvm::dbgs () << " In module:\n " ;
721+ F.getModule ().print (llvm::dbgs ());
722+ }
717723
718724 // We abort by default because we want to always crash in
719725 // the debugger.
You can’t perform that action at this time.
0 commit comments