diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-08-23 20:53:42 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-08-23 20:53:42 +0800 |
commit | 81dc38705a66f0f9357fa50a82eb096d53d2b684 (patch) | |
tree | ce91c88c6bb40703c68475f52708032b43090a92 | |
parent | b20e78d5f66d19bb142f3690b2a8c0b861bb91e1 (diff) | |
download | mrust-81dc38705a66f0f9357fa50a82eb096d53d2b684.tar.gz |
main - Name proc-macro extra enumerate/monomorph/optimise passes differently to main passes
-rw-r--r-- | src/main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index 8e97dd57..4760f736 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -729,9 +729,10 @@ int main(int argc, char *argv[]) // Needs: An executable (the actual macro handler), metadata (for `extern crate foo;`) // 1. Generate code for the plugin itself - TransList items = CompilePhase<TransList>("Trans Enumerate", [&]() { return Trans_Enumerate_Main(*hir_crate); }); - CompilePhaseV("Trans Monomorph", [&]() { Trans_Monomorphise_List(*hir_crate, items); }); - CompilePhaseV("MIR Optimise Inline", [&]() { MIR_OptimiseCrate_Inlining(*hir_crate, items); }); + TransList items = CompilePhase<TransList>("Trans Enumerate PM", [&]() { return Trans_Enumerate_Main(*hir_crate); }); + CompilePhaseV("Trans Auto Impls PM", [&]() { Trans_AutoImpls(*hir_crate, items); }); + CompilePhaseV("Trans Monomorph PM", [&]() { Trans_Monomorphise_List(*hir_crate, items); }); + CompilePhaseV("MIR Optimise Inline PM", [&]() { MIR_OptimiseCrate_Inlining(*hir_crate, items); }); // - Save a very basic HIR dump, making sure that there's no lang items in it (e.g. `mrustc-main`) CompilePhaseV("HIR Serialise", [&]() { auto saved_lang_items = ::std::move(hir_crate->m_lang_items); hir_crate->m_lang_items.clear(); |