rustc: Track link_args attributes on C stack cdecl natives as well

This commit is contained in:
Patrick Walton 2011-09-30 14:25:10 -07:00
parent dcf0e807fb
commit 7ab0897ac6

View File

@ -53,7 +53,8 @@ fn visit_view_item(e: env, i: @ast::view_item) {
fn visit_item(e: env, i: @ast::item) {
alt i.node {
ast::item_native_mod(m) {
if m.abi != ast::native_abi_rust && m.abi != ast::native_abi_cdecl {
if m.abi != ast::native_abi_rust && m.abi != ast::native_abi_cdecl &&
m.abi != ast::native_abi_c_stack_cdecl {
ret;
}
let cstore = e.sess.get_cstore();