@@ -4,7 +4,7 @@ extern crate getopts;
44extern crate rustc;
55extern crate rustc_driver;
66extern crate rustc_errors;
7- extern crate rustc_trans_utils ;
7+ extern crate rustc_codegen_utils ;
88extern crate syntax;
99
1010use std:: path:: { PathBuf , Path } ;
@@ -19,7 +19,7 @@ use rustc_driver::{Compilation, CompilerCalls, RustcDefaultCalls};
1919use rustc_driver:: driver:: { CompileState , CompileController } ;
2020use rustc:: session:: config:: { self , Input , ErrorOutputType } ;
2121use rustc:: hir:: { self , itemlikevisit} ;
22- use rustc_trans_utils :: trans_crate :: TransCrate ;
22+ use rustc_codegen_utils :: codegen_backend :: CodegenBackend ;
2323use rustc:: ty:: TyCtxt ;
2424use syntax:: ast;
2525
@@ -53,7 +53,7 @@ impl<'a> CompilerCalls<'a> for MiriCompilerCalls {
5353 }
5454 fn late_callback (
5555 & mut self ,
56- trans : & TransCrate ,
56+ trans : & CodegenBackend ,
5757 matches : & getopts:: Matches ,
5858 sess : & Session ,
5959 cstore : & CrateStore ,
@@ -104,9 +104,7 @@ fn after_analysis<'a, 'tcx>(state: &mut CompileState<'a, 'tcx>) {
104104 state. hir_crate . unwrap ( ) . visit_all_item_likes ( & mut Visitor ( tcx, state) ) ;
105105 } else if let Some ( ( entry_node_id, _, _) ) = * state. session . entry_fn . borrow ( ) {
106106 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 ) ;
110108
111109 state. session . abort_if_errors ( ) ;
112110 } else {
0 commit comments