rename dump to mir_map, which seems more suitable

This commit is contained in:
Niko Matsakis 2015-10-06 12:37:43 -04:00
parent 810cf71a3c
commit 24ee4b1f6c
3 changed files with 3 additions and 3 deletions

View File

@ -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));

View File

@ -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;

View File

@ -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 };