write_out_deps(&sess, input, &outputs, &id[]);
+ controller_entry_point!(after_write_deps,
+ CompileState::state_after_write_deps(input,
+ &sess,
+ outdir,
+ &ast_map,
+ &id[]));
+
let arenas = ty::CtxtArenas::new();
let analysis = phase_3_run_analysis_passes(sess,
ast_map,
pub struct CompileController<'a> {
pub after_parse: PhaseController<'a>,
pub after_expand: PhaseController<'a>,
+ pub after_write_deps: PhaseController<'a>,
pub after_analysis: PhaseController<'a>,
pub after_llvm: PhaseController<'a>,
CompileController {
after_parse: PhaseController::basic(),
after_expand: PhaseController::basic(),
+ after_write_deps: PhaseController::basic(),
after_analysis: PhaseController::basic(),
after_llvm: PhaseController::basic(),
make_glob_map: resolve::MakeGlobMap::No,
}
}
+ fn state_after_write_deps(input: &'a Input,
+ session: &'a Session,
+ out_dir: &'a Option<Path>,
+ ast_map: &'a ast_map::Map<'ast>,
+ crate_name: &'a str)
+ -> CompileState<'a, 'ast, 'tcx> {
+ CompileState {
+ crate_name: Some(crate_name),
+ ast_map: Some(ast_map),
+ .. CompileState::empty(input, session, out_dir)
+ }
+ }
+
fn state_after_analysis(input: &'a Input,
session: &'a Session,
out_dir: &'a Option<Path>,
+++ /dev/null
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-