summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-08-21 17:45:50 +0800
committerJohn Hodge <tpg@mutabah.net>2016-08-21 17:45:50 +0800
commit268858050a4ed646dbba7cf10cb767c9e93ad739 (patch)
tree58021510ee1a0b2964da345ba03c4ccb69cbc1fe /src/main.cpp
parent6a293dffc754462c870f371b69a823b34198e894 (diff)
downloadmrust-268858050a4ed646dbba7cf10cb767c9e93ad739.tar.gz
main - (minor) Different name for HIR dump, plan on MIR opt
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp9
1 files changed, 8 insertions, 1 deletions
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)