提交 f28a4e93 编写于 作者: M Michael Woerister

Also move the MIR visitor to librustc.

上级 bbe1d284
......@@ -139,6 +139,7 @@ pub mod middle {
pub mod mir {
pub mod repr;
pub mod tcx;
pub mod visit;
}
pub mod session;
......
......@@ -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
......
......@@ -34,5 +34,4 @@
mod hair;
mod graphviz;
pub mod transform;
pub mod visit;
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册