mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
Also move the MIR visitor to librustc.
This commit is contained in:
parent
bbe1d28496
commit
f28a4e93b4
@ -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 @@ pub mod mir_map;
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user