diff options
author | John Hodge <tpg@mutabah.net> | 2016-10-23 20:59:10 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-10-23 20:59:10 +0800 |
commit | 38fcfd916a9f371ed4c059a254a80b40f4f54e3e (patch) | |
tree | fefe79856285e41bb3ba59462fdddc5fd12cf6f2 /src/main.cpp | |
parent | 74dfcc04f3acbe8409b06b7901ab2a4a0802a73a (diff) | |
download | mrust-38fcfd916a9f371ed4c059a254a80b40f4f54e3e.tar.gz |
Misc - Tiny changes to get farther towards compiling rustc
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/main.cpp b/src/main.cpp index 24a5ad57..a8352dc2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -372,18 +372,13 @@ int main(int argc, char *argv[]) CompilePhaseV("MIR Validate", [&]() {
MIR_CheckCrate(*hir_crate);
});
-
- if( params.last_stage == ProgramParams::STAGE_MIR ) {
- return 0;
- }
// Optimise the MIR
// TODO: MIR Optimisation
- //CompilePhaseV("Dump MIR", [&]() {
- // ::std::ofstream os (FMT(params.outfile << "_4_mir_opt.rs"));
- // MIR_Dump( os, *hir_crate );
- // });
+ if( params.last_stage == ProgramParams::STAGE_MIR ) {
+ return 0;
+ }
// TODO: Pass to mark items that are
// - Signature Exportable (public)
|