rustc: Time the Rust translation and LLVM passes separately

This commit is contained in:
Patrick Walton 2011-05-02 17:45:07 -07:00
parent a833f152ba
commit ebc236e91c
2 changed files with 11 additions and 6 deletions

View file

@ -7748,8 +7748,8 @@ fn create_crate_map(@crate_ctxt ccx) -> ValueRef {
}
fn trans_crate(session.session sess, @ast.crate crate, ty.ctxt tcx,
ty.type_cache type_cache, str output, bool shared,
bool optimize, bool verify, bool save_temps, output_type ot) {
ty.type_cache type_cache, str output, bool shared)
-> ModuleRef {
auto llmod =
llvm.LLVMModuleCreateWithNameInContext(_str.buf("rust_out"),
llvm.LLVMGetGlobalContext());
@ -7816,7 +7816,7 @@ fn trans_crate(session.session sess, @ast.crate crate, ty.ctxt tcx,
// Translate the metadata.
middle.metadata.write_metadata(cx.ccx, shared, crate);
run_passes(llmod, optimize, verify, save_temps, output, ot);
ret llmod;
}
//