aboutsummaryrefslogtreecommitdiff
path: root/src/comp/back/x86.rs
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-09-24 14:56:04 -0700
committerGraydon Hoare <[email protected]>2010-09-24 14:56:04 -0700
commit4cfc4250bf721d5946b4f91c7b561dd57a00cc96 (patch)
tree74ddce35ffc08f66def2dccba16515414b01868d /src/comp/back/x86.rs
parentWrap long line. (diff)
downloadrust-4cfc4250bf721d5946b4f91c7b561dd57a00cc96.tar.xz
rust-4cfc4250bf721d5946b4f91c7b561dd57a00cc96.zip
More work on trans, almost getting to the point of emitting an upcall.
Diffstat (limited to 'src/comp/back/x86.rs')
-rw-r--r--src/comp/back/x86.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/comp/back/x86.rs b/src/comp/back/x86.rs
index bfe50200..b3edcae6 100644
--- a/src/comp/back/x86.rs
+++ b/src/comp/back/x86.rs
@@ -121,7 +121,7 @@ fn decl_glue(int align, str prefix, str name, vec[str] insns) -> str {
fn decl_upcall_glue(int align, str prefix, uint n) -> str {
let int i = n as int;
ret decl_glue(align, prefix,
- "rust_upcall_" + istr(i),
+ abi.upcall_glue_name(i),
upcall_glue(i));
}
@@ -131,11 +131,11 @@ fn get_module_asm() -> str {
auto glues =
vec(decl_glue(align, prefix,
- "rust_activate_glue",
+ abi.activate_glue_name(),
rust_activate_glue()),
decl_glue(align, prefix,
- "rust_yield_glue",
+ abi.yield_glue_name(),
rust_yield_glue()))
+ _vec.init_fn[str](bind decl_upcall_glue(align, prefix, _),