Skip to content

Commit 0434d9e

Browse files
committed
---
yaml --- r: 3712 b: refs/heads/master c: edf8245 h: refs/heads/master v: v3
1 parent 99d5d64 commit 0434d9e

File tree

5 files changed

+733
-782
lines changed

5 files changed

+733
-782
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: e1b107d74ef5c27ec4c000f1fe4a9f55a7c67b97
2+
refs/heads/master: edf82452730162a64ae87a8bb0865e037309a3d7

trunk/src/comp/back/link.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ fn get_symbol_hash(&@crate_ctxt ccx, &ty::t t) -> str {
429429
ret hash;
430430
}
431431

432-
fn mangle(&vec[str] ss) -> str {
432+
fn mangle(&str[] ss) -> str {
433433
// Follow C++ namespace-mangling style
434434

435435
auto n = "_ZN"; // Begin name-sequence.
@@ -440,14 +440,14 @@ fn mangle(&vec[str] ss) -> str {
440440
ret n;
441441
}
442442

443-
fn exported_name(&vec[str] path, &str hash, &str vers) -> str {
443+
fn exported_name(&str[] path, &str hash, &str vers) -> str {
444444
// FIXME: versioning isn't working yet
445445

446-
ret mangle(path + [hash]); // + "@" + vers;
446+
ret mangle(path + ~[hash]); // + "@" + vers;
447447

448448
}
449449

450-
fn mangle_exported_name(&@crate_ctxt ccx, &vec[str] path, &ty::t t) -> str {
450+
fn mangle_exported_name(&@crate_ctxt ccx, &str[] path, &ty::t t) -> str {
451451
auto hash = get_symbol_hash(ccx, t);
452452
ret exported_name(path, hash, ccx.link_meta.vers);
453453
}
@@ -456,15 +456,15 @@ fn mangle_internal_name_by_type_only(&@crate_ctxt ccx, &ty::t t, &str name) ->
456456
str {
457457
auto s = util::ppaux::ty_to_short_str(ccx.tcx, t);
458458
auto hash = get_symbol_hash(ccx, t);
459-
ret mangle([name, s, hash]);
459+
ret mangle(~[name, s, hash]);
460460
}
461461

462-
fn mangle_internal_name_by_path_and_seq(&@crate_ctxt ccx, &vec[str] path,
462+
fn mangle_internal_name_by_path_and_seq(&@crate_ctxt ccx, &str[] path,
463463
&str flav) -> str {
464-
ret mangle(path + [ccx.names.next(flav)]);
464+
ret mangle(path + ~[ccx.names.next(flav)]);
465465
}
466466

467-
fn mangle_internal_name_by_path(&@crate_ctxt ccx, &vec[str] path) -> str {
467+
fn mangle_internal_name_by_path(&@crate_ctxt ccx, &str[] path) -> str {
468468
ret mangle(path);
469469
}
470470

trunk/src/comp/back/upcall.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ type upcalls =
6565
fn declare_upcalls(type_names tn, ModuleRef llmod) -> @upcalls {
6666
fn decl(type_names tn, ModuleRef llmod, str name, vec[TypeRef] tys,
6767
TypeRef rv) -> ValueRef {
68-
let vec[TypeRef] arg_tys = [T_taskptr(tn)];
69-
for (TypeRef t in tys) { arg_tys += [t]; }
68+
let TypeRef[] arg_tys = ~[T_taskptr(tn)];
69+
for (TypeRef t in tys) { arg_tys += ~[t]; }
7070
auto fn_ty = T_fn(arg_tys, rv);
7171
ret trans::decl_cdecl_fn(llmod, "upcall_" + name, fn_ty);
7272
}

0 commit comments

Comments
 (0)