Skip to content

Commit 24ee4b1

Browse files
committed
rename dump to mir_map, which seems more suitable
1 parent 810cf71 commit 24ee4b1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/librustc_driver/driver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(sess: Session,
740740

741741
let _mir_map =
742742
time(time_passes, "MIR dump", ||
743-
mir::dump::dump_crate(tcx));
743+
mir::mir_map::build_mir_for_crate(tcx));
744744

745745
time(time_passes, "liveness checking", ||
746746
middle::liveness::check_crate(tcx));

src/librustc_mir/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ extern crate rustc_front;
3030
extern crate syntax;
3131

3232
pub mod build;
33-
pub mod dump;
33+
pub mod mir_map;
3434
pub mod hair;
3535
pub mod repr;
3636
mod graphviz;

src/librustc_mir/dump.rs renamed to src/librustc_mir/mir_map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ use self::syntax::codemap::Span;
3939

4040
pub type MirMap<'tcx> = NodeMap<Mir<'tcx>>;
4141

42-
pub fn dump_crate<'tcx>(tcx: &ty::ctxt<'tcx>) -> MirMap<'tcx>{
42+
pub fn build_mir_for_crate<'tcx>(tcx: &ty::ctxt<'tcx>) -> MirMap<'tcx>{
4343
let mut map = NodeMap();
4444
{
4545
let mut dump = OuterDump { tcx: tcx, map: &mut map };

0 commit comments

Comments
 (0)