diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index b8ba315d..24a5ad57 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -312,6 +312,10 @@ int main(int argc, char *argv[]) ConvertHIR_ConstantEvaluate(*hir_crate);
});
+ CompilePhaseV("Dump HIR", [&]() {
+ ::std::ofstream os (FMT(params.outfile << "_2_hir.rs"));
+ HIR_Dump( os, *hir_crate );
+ });
// === Type checking ===
// - This can recurse and call the MIR lower to evaluate constants
|