From 268858050a4ed646dbba7cf10cb767c9e93ad739 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 21 Aug 2016 17:45:50 +0800 Subject: main - (minor) Different name for HIR dump, plan on MIR opt --- src/main.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index fab6d018..488cafaa 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -234,7 +234,7 @@ int main(int argc, char *argv[]) }); CompilePhaseV("Dump HIR", [&]() { - ::std::ofstream os (FMT(params.outfile << "_3_hir.rs")); + ::std::ofstream os (FMT(params.outfile << "_2_hir.rs")); HIR_Dump( os, *hir_crate ); }); @@ -255,6 +255,13 @@ int main(int argc, char *argv[]) MIR_Dump( os, *hir_crate ); }); + // Optimise the MIR + + //CompilePhaseV("Dump MIR", [&]() { + // ::std::ofstream os (FMT(params.outfile << "_4_mir_opt.rs")); + // MIR_Dump( os, *hir_crate ); + // }); + // Generate code for non-generic public items (if requested) // Save HIR tree (if requested) -- cgit v1.2.3