Implement #[link_ordinal] attribute in the context of #[link(kind = "raw-dylib")].
This commit is contained in:
parent
60e70cc909
commit
142f6c0b07
20 changed files with 201 additions and 23 deletions
|
@ -433,6 +433,12 @@ impl Collector<'tcx> {
|
|||
}
|
||||
}
|
||||
};
|
||||
DllImport { name: item.ident.name, ordinal: None, calling_convention, span: item.span }
|
||||
|
||||
DllImport {
|
||||
name: item.ident.name,
|
||||
ordinal: self.tcx.codegen_fn_attrs(item.id.def_id).link_ordinal,
|
||||
calling_convention,
|
||||
span: item.span,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue