summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-10-09 18:55:55 +0800
committerJohn Hodge <tpg@mutabah.net>2016-10-09 18:55:55 +0800
commit5628dbb9c1ed497a2421481c39ef53f616328b25 (patch)
treebbb049b6d08f4c560b25c3c77e3458ddedb5f8f7
parent014d7f494bc403e7204880af676ad7a12827a0d5 (diff)
downloadmrust-5628dbb9c1ed497a2421481c39ef53f616328b25.tar.gz
main - (minor) Commenting
-rw-r--r--src/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 2bce1759..3a5d4247 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -85,7 +85,6 @@ void init_debug_list()
}
bool debug_enabled()
{
- // TODO: Have an explicit enable list?
if( g_debug_disable_map.count(g_cur_phase) != 0 ) {
return false;
}
@@ -323,6 +322,7 @@ int main(int argc, char *argv[])
}
// Optimise the MIR
+ // TODO: MIR Optimisation
//CompilePhaseV("Dump MIR", [&]() {
// ::std::ofstream os (FMT(params.outfile << "_4_mir_opt.rs"));
@@ -347,7 +347,7 @@ int main(int argc, char *argv[])
HIR_Serialise(params.outfile, *hir_crate);
});
// Generate a .o
- //HIR_Codegen(params.outfile + ".o", *hir_crate);
+ //HIR_Codegen_Lib(params.outfile + ".o", *hir_crate);
// Link into a .rlib
break;
case ::AST::Crate::Type::RustDylib:
@@ -359,6 +359,7 @@ int main(int argc, char *argv[])
break;
case ::AST::Crate::Type::Executable:
// Generate a binary
+ //HIR_Codegen_Main(params.outfile + ".o", *hir_crate);
break;
}
}