summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 0dfb4405..cd494d6f 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -307,15 +307,16 @@ int main(int argc, char *argv[])
HIR_GenerateMIR(*hir_crate);
});
+ CompilePhaseV("Dump MIR", [&]() {
+ ::std::ofstream os (FMT(params.outfile << "_3_mir.rs"));
+ MIR_Dump( os, *hir_crate );
+ });
+
// Validate the MIR
CompilePhaseV("MIR Validate", [&]() {
MIR_CheckCrate(*hir_crate);
});
- CompilePhaseV("Dump MIR", [&]() {
- ::std::ofstream os (FMT(params.outfile << "_3_mir.rs"));
- MIR_Dump( os, *hir_crate );
- });
if( params.last_stage == ProgramParams::STAGE_MIR ) {
return 0;
}