@@ -136,6 +136,7 @@ type crate_ctxt =
136
136
hashmap[ ast:: node_id, str] item_symbols ,
137
137
mutable option:: t[ ValueRef ] main_fn ,
138
138
link:: link_meta link_meta,
139
+ str link_meta_hash ,
139
140
140
141
// TODO: hashmap[tup(tag_id,subtys), @tag_info]
141
142
hashmap[ ty:: t, uint] tag_sizes ,
@@ -150,7 +151,6 @@ type crate_ctxt =
150
151
@glue_fns glues ,
151
152
namegen names,
152
153
std:: sha1:: sha1 sha,
153
- hashmap[ ty:: t, str] type_sha1s ,
154
154
hashmap[ ty:: t, str] type_short_names ,
155
155
ty:: ctxt tcx,
156
156
stats stats,
@@ -8601,9 +8601,9 @@ fn trans_crate(&session::session sess, &@ast::crate crate, &ty::ctxt tcx,
8601
8601
auto tag_sizes = map:: mk_hashmap[ ty:: t, uint] ( hasher, eqer) ;
8602
8602
auto tydescs = map:: mk_hashmap[ ty:: t, @tydesc_info] ( hasher, eqer) ;
8603
8603
auto lltypes = map:: mk_hashmap[ ty:: t, TypeRef ] ( hasher, eqer) ;
8604
- auto sha1s = map:: mk_hashmap[ ty:: t, str ] ( hasher, eqer) ;
8605
8604
auto short_names = map:: mk_hashmap[ ty:: t, str ] ( hasher, eqer) ;
8606
8605
auto sha = std:: sha1:: mk_sha1( ) ;
8606
+ auto link_meta = link:: build_link_meta( sess, * crate , output, sha) ;
8607
8607
auto ccx =
8608
8608
@rec( sess=sess,
8609
8609
llmod=llmod,
@@ -8615,7 +8615,8 @@ fn trans_crate(&session::session sess, &@ast::crate crate, &ty::ctxt tcx,
8615
8615
ast_map=amap,
8616
8616
item_symbols=new_int_hash[ str ] ( ) ,
8617
8617
mutable main_fn=none[ ValueRef ] ,
8618
- link_meta=link:: build_link_meta( sess, * crate , output, sha) ,
8618
+ link_meta=link_meta,
8619
+ link_meta_hash=link:: hash_link_meta( sha, link_meta) ,
8619
8620
tag_sizes=tag_sizes,
8620
8621
discrims=new_int_hash[ ValueRef ] ( ) ,
8621
8622
discrim_symbols=new_int_hash[ str ] ( ) ,
@@ -8628,7 +8629,6 @@ fn trans_crate(&session::session sess, &@ast::crate crate, &ty::ctxt tcx,
8628
8629
glues=glues,
8629
8630
names=namegen( 0 ) ,
8630
8631
sha=sha,
8631
- type_sha1s=sha1s,
8632
8632
type_short_names=short_names,
8633
8633
tcx=tcx,
8634
8634
stats=rec( mutable n_static_tydescs=0 u,
0 commit comments