File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -548,10 +548,6 @@ Session::compile_crate (const char *filename)
548
548
handle_crate_name (filename, *ast_crate.get ());
549
549
550
550
// dump options except lexer dump
551
- if (options.dump_option_enabled (CompileOptions::AST_DUMP_PRETTY))
552
- {
553
- dump_ast_pretty (*ast_crate.get ());
554
- }
555
551
if (options.dump_option_enabled (CompileOptions::TARGET_OPTION_DUMP))
556
552
{
557
553
options.target_data .dump_target_options ();
@@ -560,6 +556,11 @@ Session::compile_crate (const char *filename)
560
556
if (saw_errors ())
561
557
return ;
562
558
559
+ if (options.dump_option_enabled (CompileOptions::AST_DUMP_PRETTY))
560
+ {
561
+ dump_ast_pretty (*ast_crate.get ());
562
+ }
563
+
563
564
// setup the mappings for this AST
564
565
CrateNum current_crate = mappings.get_current_crate ();
565
566
AST::Crate &parsed_crate
You can’t perform that action at this time.
0 commit comments