summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-08-25 20:36:55 +0800
committerJohn Hodge <tpg@mutabah.net>2016-08-25 20:36:55 +0800
commita162598c317d77d40753b1a09ebe7377e47d76bf (patch)
treea6d3ca83eb5ebae2dad73872669c980593859c62
parentce4c0c70bcbd2865ea76cef10f4e9da60132f142 (diff)
downloadmrust-a162598c317d77d40753b1a09ebe7377e47d76bf.tar.gz
Main - Silence a bunch of logging
-rw-r--r--src/main.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 00d3be19..1625d987 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -36,19 +36,26 @@ void init_debug_list()
g_debug_disable_map.insert( "Resolve" );
+ g_debug_disable_map.insert( "HIR Lower" );
+
g_debug_disable_map.insert( "Resolve Type Aliases" );
g_debug_disable_map.insert( "Resolve Bind" );
g_debug_disable_map.insert( "Resolve UFCS paths" );
g_debug_disable_map.insert( "Constant Evaluate" );
+ g_debug_disable_map.insert( "Typecheck Outer");
g_debug_disable_map.insert( "Typecheck Expressions" );
g_debug_disable_map.insert( "Expand HIR Annotate" );
g_debug_disable_map.insert( "Expand HIR Closures" );
g_debug_disable_map.insert( "Expand HIR Calls" );
+ g_debug_disable_map.insert( "Expand HIR Reborrows" );
g_debug_disable_map.insert( "Typecheck Expressions (validate)" );
g_debug_disable_map.insert( "Dump HIR" );
+ g_debug_disable_map.insert( "Lower MIR" );
+ g_debug_disable_map.insert( "MIR Validate" );
+ g_debug_disable_map.insert( "Dump MIR" );
}
bool debug_enabled()
{
@@ -284,7 +291,9 @@ int main(int argc, char *argv[])
break;
case ::AST::Crate::Type::RustLib:
// Save a loadable HIR dump
- //HIR_Serialise(params.outfile + ".meta", *hir_crate);
+ CompilePhaseV("RustLib - HIR Serialise", [&]() {
+ HIR_Serialise(params.outfile + ".meta", *hir_crate);
+ });
// Generate a .o
//HIR_Codegen(params.outfile + ".o", *hir_crate);
// Link into a .rlib