Commit 41f7b11 1 parent dd33534 commit 41f7b11 Copy full SHA for 41f7b11
File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -70,9 +70,10 @@ namespace vast::cc
70
70
constexpr string_ref emit_llvm = " emit-llvm" ;
71
71
constexpr string_ref emit_obj = " emit-obj" ;
72
72
constexpr string_ref emit_asm = " emit-asm" ;
73
-
74
73
constexpr string_ref emit_mlir = " emit-mlir" ;
75
74
75
+ constexpr string_ref debug = " debug" ;
76
+
76
77
constexpr string_ref simplify = " simplify" ;
77
78
78
79
constexpr string_ref show_locs = " show-locs" ;
Original file line number Diff line number Diff line change @@ -200,7 +200,12 @@ namespace vast::cc {
200
200
bool verify_diagnostics = vargs.has_option (opt::vast_verify_diags);
201
201
202
202
mlir::SourceMgrDiagnosticVerifierHandler src_mgr_handler (mlir_src_mgr, mctx);
203
- mctx->printOpOnDiagnostic (false );
203
+
204
+ if (vargs.has_option (opt::debug)) {
205
+ mctx->printOpOnDiagnostic (true );
206
+ mctx->printStackTraceOnDiagnostic (true );
207
+ llvm::DebugFlag = true ;
208
+ }
204
209
205
210
execute_pipeline (mod.get (), mctx);
206
211
You can’t perform that action at this time.
0 commit comments