Skip to content

Commit f0b7498

Browse files
committed
---
yaml --- r: 4999 b: refs/heads/master c: afe27d4 h: refs/heads/master i: 4997: 8b36bf3 4995: 37b6b1d 4991: 3cc561b v: v3
1 parent 788e0a0 commit f0b7498

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 32b45248067e9f54446db2d096f80d82be51209a
2+
refs/heads/master: afe27d461cd78372f5c40f64de6a32a2011d0d9c

trunk/src/comp/metadata/encoder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,14 @@ fn encode_type(ecx: &@encode_ctxt, ebml_w: &ebml::writer, typ: ty::t) {
213213

214214
fn encode_symbol(ecx: &@encode_ctxt, ebml_w: &ebml::writer, id: node_id) {
215215
ebml::start_tag(ebml_w, tag_items_data_item_symbol);
216-
ebml_w.writer.write(str::bytes(ecx.ccx.item_symbols.get(id)));
216+
ebml_w.writer.write(istr::bytes(ecx.ccx.item_symbols.get(id)));
217217
ebml::end_tag(ebml_w);
218218
}
219219

220220
fn encode_discriminant(ecx: &@encode_ctxt, ebml_w: &ebml::writer,
221221
id: node_id) {
222222
ebml::start_tag(ebml_w, tag_items_data_item_symbol);
223-
ebml_w.writer.write(str::bytes(ecx.ccx.discrim_symbols.get(id)));
223+
ebml_w.writer.write(istr::bytes(ecx.ccx.discrim_symbols.get(id)));
224224
ebml::end_tag(ebml_w);
225225
}
226226

trunk/src/comp/middle/trans.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5858,7 +5858,7 @@ fn register_fn_pair(cx: &@crate_ctxt, ps: str, llfnty: TypeRef,
58585858
let gvar =
58595859
create_fn_pair(cx, ps, llfnty, llfn, cx.sess.get_opts().library);
58605860
cx.item_ids.insert(id, llfn);
5861-
cx.item_symbols.insert(id, ps);
5861+
cx.item_symbols.insert(id, istr::from_estr(ps));
58625862
cx.fn_pairs.insert(id, gvar);
58635863
}
58645864

@@ -6101,7 +6101,7 @@ fn collect_item_1(ccx: @crate_ctxt, i: &@ast::item, pt: &[str],
61016101
let g = istr::as_buf(s, { |buf|
61026102
llvm::LLVMAddGlobal(ccx.llmod, type_of(ccx, i.span, typ), buf)
61036103
});
6104-
ccx.item_symbols.insert(i.id, istr::to_estr(s));
6104+
ccx.item_symbols.insert(i.id, s);
61056105
ccx.consts.insert(i.id, g);
61066106
}
61076107
_ { }
@@ -6198,7 +6198,7 @@ fn trans_constant(ccx: @crate_ctxt, it: &@ast::item, pt: &[str],
61986198
llvm::LLVMSetGlobalConstant(discrim_gvar, True);
61996199
}
62006200
ccx.discrims.insert(variant.node.id, discrim_gvar);
6201-
ccx.discrim_symbols.insert(variant.node.id, istr::to_estr(s));
6201+
ccx.discrim_symbols.insert(variant.node.id, s);
62026202
i += 1u;
62036203
}
62046204
}
@@ -6428,7 +6428,7 @@ fn trans_crate(sess: &session::session, crate: &@ast::crate, tcx: &ty::ctxt,
64286428
let tydescs = map::mk_hashmap::<ty::t, @tydesc_info>(hasher, eqer);
64296429
let lltypes = map::mk_hashmap::<ty::t, TypeRef>(hasher, eqer);
64306430
let sha1s = map::mk_hashmap::<ty::t, istr>(hasher, eqer);
6431-
let short_names = map::mk_hashmap::<ty::t, str>(hasher, eqer);
6431+
let short_names = map::mk_hashmap::<ty::t, istr>(hasher, eqer);
64326432
let sha = std::sha1::mk_sha1();
64336433
let ccx =
64346434
@{sess: sess,
@@ -6439,13 +6439,13 @@ fn trans_crate(sess: &session::session, crate: &@ast::crate, tcx: &ty::ctxt,
64396439
intrinsics: intrinsics,
64406440
item_ids: new_int_hash::<ValueRef>(),
64416441
ast_map: amap,
6442-
item_symbols: new_int_hash::<str>(),
6442+
item_symbols: new_int_hash::<istr>(),
64436443
mutable main_fn: none::<ValueRef>,
64446444
link_meta: link::build_link_meta(sess, *crate,
64456445
istr::from_estr(output), sha),
64466446
tag_sizes: tag_sizes,
64476447
discrims: new_int_hash::<ValueRef>(),
6448-
discrim_symbols: new_int_hash::<str>(),
6448+
discrim_symbols: new_int_hash::<istr>(),
64496449
fn_pairs: new_int_hash::<ValueRef>(),
64506450
consts: new_int_hash::<ValueRef>(),
64516451
obj_methods: new_int_hash::<()>(),

trunk/src/comp/middle/trans_common.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,12 @@ type crate_ctxt =
131131
intrinsics: hashmap<istr, ValueRef>,
132132
item_ids: hashmap<ast::node_id, ValueRef>,
133133
ast_map: ast_map::map,
134-
item_symbols: hashmap<ast::node_id, str>,
134+
item_symbols: hashmap<ast::node_id, istr>,
135135
mutable main_fn: option::t<ValueRef>,
136136
link_meta: link::link_meta,
137137
tag_sizes: hashmap<ty::t, uint>,
138138
discrims: hashmap<ast::node_id, ValueRef>,
139-
discrim_symbols: hashmap<ast::node_id, str>,
139+
discrim_symbols: hashmap<ast::node_id, istr>,
140140
fn_pairs: hashmap<ast::node_id, ValueRef>,
141141
consts: hashmap<ast::node_id, ValueRef>,
142142
obj_methods: hashmap<ast::node_id, ()>,
@@ -147,7 +147,7 @@ type crate_ctxt =
147147
names: namegen,
148148
sha: std::sha1::sha1,
149149
type_sha1s: hashmap<ty::t, istr>,
150-
type_short_names: hashmap<ty::t, str>,
150+
type_short_names: hashmap<ty::t, istr>,
151151
tcx: ty::ctxt,
152152
mut_map: alias::mut_map,
153153
stats: stats,

trunk/src/comp/middle/trans_objects.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ fn process_normal_mthd(cx: @local_ctxt, m: @ast::method, self_ty: ty::t,
936936
// item_ids map, together with the ValueRef that points to where that
937937
// method's definition will be in the executable.
938938
cx.ccx.item_ids.insert(m.node.id, llfn);
939-
cx.ccx.item_symbols.insert(m.node.id, istr::to_estr(s));
939+
cx.ccx.item_symbols.insert(m.node.id, s);
940940
trans_fn(mcx, m.span, m.node.meth, llfn, some(self_ty), ty_params,
941941
m.node.id);
942942

0 commit comments

Comments
 (0)