aboutsummaryrefslogtreecommitdiff
path: root/src/comp/driver
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-04-25 12:15:55 -0700
committerPatrick Walton <[email protected]>2011-04-25 12:15:55 -0700
commite102413aadf4cb0e2740b26d249a710ad98cbd14 (patch)
tree6c47e65fddf38f01b3a1b32259ca70d595c2bef5 /src/comp/driver
parentAvoid type_store hashtable access for a variety of cases, probably only ty_va... (diff)
downloadrust-e102413aadf4cb0e2740b26d249a710ad98cbd14.tar.xz
rust-e102413aadf4cb0e2740b26d249a710ad98cbd14.zip
rustc: Pass a "type context" around instead of directly passing the type store; prep for removing type annotations
Diffstat (limited to 'src/comp/driver')
-rw-r--r--src/comp/driver/rustc.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs
index afef226e..eabf0310 100644
--- a/src/comp/driver/rustc.rs
+++ b/src/comp/driver/rustc.rs
@@ -73,13 +73,13 @@ fn compile_input(session.session sess,
crate = resolve.resolve_crate(sess, crate);
capture.check_for_captures(sess, crate);
- auto tystore = ty.mk_type_store();
- auto typeck_result = typeck.check_crate(sess, tystore, crate);
+ auto ty_cx = ty.mk_ctxt();
+ auto typeck_result = typeck.check_crate(sess, ty_cx, crate);
crate = typeck_result._0;
auto type_cache = typeck_result._1;
// FIXME: uncomment once typestate_check works
// crate = typestate_check.check_crate(crate);
- trans.trans_crate(sess, crate, tystore, type_cache, output, shared,
+ trans.trans_crate(sess, crate, ty_cx, type_cache, output, shared,
optimize, verify, ot);
}