@@ -13,6 +13,7 @@ use middle::cstore::CrateStore;
1313use middle:: dependency_format;
1414use session:: search_paths:: PathKind ;
1515use util:: nodemap:: { NodeMap , FnvHashMap } ;
16+ use mir:: transform:: MirPass ;
1617
1718use syntax:: ast:: { NodeId , NodeIdAssigner , Name } ;
1819use syntax:: codemap:: { Span , MultiSpan } ;
@@ -59,6 +60,7 @@ pub struct Session {
5960 pub lint_store : RefCell < lint:: LintStore > ,
6061 pub lints : RefCell < NodeMap < Vec < ( lint:: LintId , Span , String ) > > > ,
6162 pub plugin_llvm_passes : RefCell < Vec < String > > ,
63+ pub plugin_mir_passes : RefCell < Vec < Box < MirPass > > > ,
6264 pub plugin_attributes : RefCell < Vec < ( String , AttributeType ) > > ,
6365 pub crate_types : RefCell < Vec < config:: CrateType > > ,
6466 pub dependency_formats : RefCell < dependency_format:: Dependencies > ,
@@ -475,6 +477,7 @@ pub fn build_session_(sopts: config::Options,
475477 lint_store : RefCell :: new ( lint:: LintStore :: new ( ) ) ,
476478 lints : RefCell :: new ( NodeMap ( ) ) ,
477479 plugin_llvm_passes : RefCell :: new ( Vec :: new ( ) ) ,
480+ plugin_mir_passes : RefCell :: new ( Vec :: new ( ) ) ,
478481 plugin_attributes : RefCell :: new ( Vec :: new ( ) ) ,
479482 crate_types : RefCell :: new ( Vec :: new ( ) ) ,
480483 dependency_formats : RefCell :: new ( FnvHashMap ( ) ) ,
0 commit comments