diff options
| author | Patrick Walton <[email protected]> | 2011-03-30 17:23:25 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2011-03-30 17:28:06 -0700 |
| commit | cc59cea8b055cd94279c167e99b1176751702d36 (patch) | |
| tree | 9a7c33168ac8845f81e62c43a6a1ae8ee46ace87 /src/comp/driver/rustc.rs | |
| parent | Um, that'd be, align the word *before* retpc. Addresses point to the low part... (diff) | |
| download | rust-cc59cea8b055cd94279c167e99b1176751702d36.tar.xz rust-cc59cea8b055cd94279c167e99b1176751702d36.zip | |
rustc: Thread an item-to-type mapping throughout the typechecking and translation phases
Diffstat (limited to 'src/comp/driver/rustc.rs')
| -rw-r--r-- | src/comp/driver/rustc.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs index 69644425..4c6da407 100644 --- a/src/comp/driver/rustc.rs +++ b/src/comp/driver/rustc.rs @@ -6,6 +6,7 @@ import front.token; import front.eval; import middle.trans; import middle.resolve; +import middle.ty; import middle.typeck; import util.common; @@ -62,8 +63,12 @@ impure fn compile_input(session.session sess, auto crate = parse_input(sess, p, input); crate = creader.read_crates(sess, crate, library_search_paths); crate = resolve.resolve_crate(sess, crate); - crate = typeck.check_crate(sess, crate); - trans.trans_crate(sess, crate, output, shared); + + auto typeck_result = typeck.check_crate(sess, crate); + crate = typeck_result._0; + auto type_cache = typeck_result._1; + + trans.trans_crate(sess, crate, type_cache, output, shared); } impure fn pretty_print_input(session.session sess, |