Also move the MIR visitor to librustc.

This commit is contained in:
Michael Woerister 2015-11-24 14:35:34 +01:00
parent bbe1d28496
commit f28a4e93b4
4 changed files with 4 additions and 4 deletions

View File

@ -139,6 +139,7 @@ pub mod middle {
pub mod mir {
pub mod repr;
pub mod tcx;
pub mod visit;
}
pub mod session;

View File

@ -8,8 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use rustc::middle::ty::Region;
use rustc::mir::repr::*;
use middle::ty::Region;
use mir::repr::*;
pub trait Visitor<'tcx> {
// Override these, and call `self.super_xxx` to revert back to the

View File

@ -34,5 +34,4 @@ pub mod mir_map;
mod hair;
mod graphviz;
pub mod transform;
pub mod visit;

View File

@ -13,7 +13,7 @@
use rustc_data_structures::fnv::FnvHashSet;
use rustc::mir::repr as mir;
use rustc_mir::visit::{Visitor, LvalueContext};
use rustc::mir::visit::{Visitor, LvalueContext};
use trans::common::{self, Block};
use super::rvalue;