Only retain external static symbols across LTO

This commit is contained in:
arcnmx
2015-11-07 12:22:04 -05:00
parent a91ff1c9d1
commit e6f0f7d52d
6 changed files with 41 additions and 43 deletions

View File

@@ -316,6 +316,13 @@ pub fn find_export_name_attr(diag: &Handler, attrs: &[Attribute]) -> Option<Inte
})
}
pub fn contains_extern_indicator(attrs: &[Attribute]) -> bool {
contains_name(attrs, "no_mangle") ||
contains_name(attrs, "link_section") ||
contains_name(attrs, "linkage") ||
contains_name(attrs, "export_name")
}
#[derive(Copy, Clone, PartialEq)]
pub enum InlineAttr {
None,