rustc: Move code for discovering the crate entry point into its own pass
It doesn't have anything to do with resolve and the logic will likely get more involved in the future, after #4433
This commit is contained in:
parent
32901104cb
commit
be8dc615c5
4 changed files with 122 additions and 79 deletions
|
|
@ -225,6 +225,8 @@ pub fn compile_rest(sess: Session,
|
|||
time(time_passes, ~"resolution", ||
|
||||
middle::resolve::resolve_crate(sess, lang_items, crate));
|
||||
|
||||
time(time_passes, ~"looking for entry point", || middle::entry::find_entry_point(sess, crate));
|
||||
|
||||
let freevars = time(time_passes, ~"freevar finding", ||
|
||||
freevars::annotate_freevars(def_map, crate));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue