rename dump
to mir_map
, which seems more suitable
This commit is contained in:
parent
810cf71a3c
commit
24ee4b1f6c
@ -740,7 +740,7 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(sess: Session,
|
||||
|
||||
let _mir_map =
|
||||
time(time_passes, "MIR dump", ||
|
||||
mir::dump::dump_crate(tcx));
|
||||
mir::mir_map::build_mir_for_crate(tcx));
|
||||
|
||||
time(time_passes, "liveness checking", ||
|
||||
middle::liveness::check_crate(tcx));
|
||||
|
@ -30,7 +30,7 @@ extern crate rustc_front;
|
||||
extern crate syntax;
|
||||
|
||||
pub mod build;
|
||||
pub mod dump;
|
||||
pub mod mir_map;
|
||||
pub mod hair;
|
||||
pub mod repr;
|
||||
mod graphviz;
|
||||
|
@ -39,7 +39,7 @@ use self::syntax::codemap::Span;
|
||||
|
||||
pub type MirMap<'tcx> = NodeMap<Mir<'tcx>>;
|
||||
|
||||
pub fn dump_crate<'tcx>(tcx: &ty::ctxt<'tcx>) -> MirMap<'tcx>{
|
||||
pub fn build_mir_for_crate<'tcx>(tcx: &ty::ctxt<'tcx>) -> MirMap<'tcx>{
|
||||
let mut map = NodeMap();
|
||||
{
|
||||
let mut dump = OuterDump { tcx: tcx, map: &mut map };
|
Loading…
Reference in New Issue
Block a user