rustc: Add cstore to ty::ctxt so csearch can get at it

This commit is contained in:
Brian Anderson 2012-05-22 15:05:44 -07:00
parent 99c1b2953d
commit 5b4ab93017

View File

@ -204,6 +204,7 @@ type ctxt =
@{diag: syntax::diagnostic::span_handler,
interner: hashmap<intern_key, t_box>,
mut next_id: uint,
cstore: metadata::cstore::cstore,
sess: session::session,
def_map: resolve::def_map,
region_map: middle::region::region_map,
@ -468,6 +469,7 @@ fn mk_ctxt(s: session::session, dm: resolve::def_map, amap: ast_map::map,
@{diag: s.diagnostic(),
interner: interner,
mut next_id: 0u,
cstore: s.cstore,
sess: s,
def_map: dm,
region_map: region_map,