@@ -4,7 +4,7 @@ extern crate getopts;
4
4
extern crate rustc;
5
5
extern crate rustc_driver;
6
6
extern crate rustc_errors;
7
- extern crate rustc_trans_utils ;
7
+ extern crate rustc_codegen_utils ;
8
8
extern crate syntax;
9
9
10
10
use std:: path:: { PathBuf , Path } ;
@@ -19,7 +19,7 @@ use rustc_driver::{Compilation, CompilerCalls, RustcDefaultCalls};
19
19
use rustc_driver:: driver:: { CompileState , CompileController } ;
20
20
use rustc:: session:: config:: { self , Input , ErrorOutputType } ;
21
21
use rustc:: hir:: { self , itemlikevisit} ;
22
- use rustc_trans_utils :: trans_crate :: TransCrate ;
22
+ use rustc_codegen_utils :: codegen_backend :: CodegenBackend ;
23
23
use rustc:: ty:: TyCtxt ;
24
24
use syntax:: ast;
25
25
@@ -53,7 +53,7 @@ impl<'a> CompilerCalls<'a> for MiriCompilerCalls {
53
53
}
54
54
fn late_callback (
55
55
& mut self ,
56
- trans : & TransCrate ,
56
+ trans : & CodegenBackend ,
57
57
matches : & getopts:: Matches ,
58
58
sess : & Session ,
59
59
cstore : & CrateStore ,
@@ -104,9 +104,7 @@ fn after_analysis<'a, 'tcx>(state: &mut CompileState<'a, 'tcx>) {
104
104
state. hir_crate . unwrap ( ) . visit_all_item_likes ( & mut Visitor ( tcx, state) ) ;
105
105
} else if let Some ( ( entry_node_id, _, _) ) = * state. session . entry_fn . borrow ( ) {
106
106
let entry_def_id = tcx. hir . local_def_id ( entry_node_id) ;
107
- let start_wrapper = tcx. lang_items ( ) . start_fn ( ) . and_then ( |start_fn|
108
- if tcx. is_mir_available ( start_fn) { Some ( start_fn) } else { None } ) ;
109
- miri:: eval_main ( tcx, entry_def_id, start_wrapper) ;
107
+ miri:: eval_main ( tcx, entry_def_id, None ) ;
110
108
111
109
state. session . abort_if_errors ( ) ;
112
110
} else {
0 commit comments