pub fn from_fn_attrs(ccx: &CrateContext, attrs: &[ast::Attribute], llfn: ValueRef) {
    use syntax::attr::*;
    inline(llfn, find_inline_attr(Some(ccx.sess().diagnostic()), attrs));

    set_frame_pointer_elimination(ccx, llfn);

    for attr in attrs {
        if attr.check_name("cold") {
            Attribute::Cold.apply_llfn(Function, llfn);
        } else if attr.check_name("naked") {
            naked(llfn, true);
        } else if attr.check_name("allocator") {
            Attribute::NoAlias.apply_llfn(
                llvm::AttributePlace::ReturnValue(), llfn);
        } else if attr.check_name("unwind") {
            unwind(llfn, true);
        }
    }
}
/// Composite function which sets LLVM attributes for function depending on its AST (#[attribute])
/// attributes.
Composite function which sets LLVM attributes for function depending on its AST (#[attribute])
attributes.
Composite function which sets LLVM attributes for function depending on its AST ( # [ attribute ] ) attributes .
pub fn from_fn_attrs(ccx: &CrateContext, attrs: &[ast::Attribute], llfn: ValueRef) {
    use syntax::attr::*;
    inline(llfn, find_inline_attr(Some(ccx.sess().diagnostic()), attrs));
    set_frame_pointer_elimination(ccx, llfn);
    for attr in attrs {
        if attr.check_name("cold") {
            Attribute::Cold.apply_llfn(Function, llfn);
        } else if attr.check_name("naked") {
            naked(llfn, true);
        } else if attr.check_name("allocator") {
            Attribute::NoAlias.apply_llfn(
                llvm::AttributePlace::ReturnValue(), llfn);
        } else if attr.check_name("unwind") {
            unwind(llfn, true);
        }
    }
}
pub fn from_fn_attrs ( ccx : & CrateContext , attrs : & [ ast :: Attribute ] , llfn : ValueRef ) { use syntax :: attr :: * ; inline ( llfn , find_inline_attr ( Some ( ccx . sess ( ) . diagnostic ( ) ) , attrs ) ) ; set_frame_pointer_elimination ( ccx , llfn ) ; for attr in attrs { if attr . check_name ( " " ) { Attribute :: Cold . apply_llfn ( Function , llfn ) ; } else if attr . check_name ( " " ) { naked ( llfn , true ) ; } else if attr . check_name ( " " ) { Attribute :: NoAlias . apply_llfn ( llvm :: AttributePlace :: ReturnValue ( ) , llfn ) ; } else if attr . check_name ( " " ) { unwind ( llfn , true ) ; } } }
Composite function which sets LLVM attributes for function depending on its AST (#[attribute])
attributes.
Composite function which sets LLVM attributes for function depending on its AST ( # [ attribute ] ) attributes .
ccx
&CrateContext
attrs
&[ast::Attribute]
llfn
ValueRef
ccx
&CrateContext
attrs
&[ast::Attribute]
llfn
ValueRef