File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ llvm::cl::opt<bool>
28
28
SILPrintOnError (" sil-print-on-error" , llvm::cl::init(false ),
29
29
llvm::cl::desc(" Printing SIL function bodies in crash diagnostics." ));
30
30
31
+ llvm::cl::opt<bool > SILPrintModuleOnError (
32
+ " sil-print-module-on-error" , llvm::cl::init(false ),
33
+ llvm::cl::desc(" Printing SIL module in crash diagnostics." ));
34
+
31
35
static void printLocationDescription (llvm::raw_ostream &out,
32
36
SILLocation::FilenameAndLocation loc,
33
37
ASTContext &Context) {
@@ -91,6 +95,8 @@ void PrettyStackTraceSILFunction::printFunctionInfo(llvm::raw_ostream &out) cons
91
95
}
92
96
if (SILPrintOnError)
93
97
func->print (out);
98
+ if (SILPrintModuleOnError)
99
+ func->getModule ().print (out);
94
100
}
95
101
96
102
void PrettyStackTraceSILNode::print (llvm::raw_ostream &out) const {
You can’t perform that action at this time.
0 commit comments