1
Fork 0

rustc: Use link_name attribute for native function

Fixes issue #906
This commit is contained in:
Haitao Li 2011-11-14 21:06:39 +08:00
parent 73cd032df5
commit 3b683f5205
12 changed files with 35 additions and 29 deletions

View file

@ -187,9 +187,8 @@ fn noop_fold_native_item(&&ni: @native_item, fld: ast_fold) -> @native_item {
node:
alt ni.node {
native_item_ty. { native_item_ty }
native_item_fn(st, fdec, typms) {
native_item_fn(st,
{inputs: vec::map(fold_arg, fdec.inputs),
native_item_fn(fdec, typms) {
native_item_fn({inputs: vec::map(fold_arg, fdec.inputs),
output: fld.fold_ty(fdec.output),
purity: fdec.purity,
il: fdec.il,