fn replace_def_with_dec(module: &Module, re: &Regex) {
    for fun in get_function_by_regex(module, re) {
        delete_body(&fun);
        fun.remove_personality_function();
        fun.set_linkage(Linkage::External);
        info!(
            "Removed the implementation of '{}'.",
            fun.get_name().to_str().unwrap()
        );
    }
}
/// Change a function to a declaration by
/// deleting all basic blocks and modifying metadata
/// such as personality_function, linkage, etc.
Change a function to a declaration by
deleting all basic blocks and modifying metadata
such as personality_function, linkage, etc.
Change a function to a declaration by deleting all basic blocks and modifying metadata such as personality_function linkage etc .
fn replace_def_with_dec(module: &Module, re: &Regex) {
    for fun in get_function_by_regex(module, re) {
        delete_body(&fun);
        fun.remove_personality_function();
        fun.set_linkage(Linkage::External);
        info!(
            "Removed the implementation of '{}'.",
            fun.get_name().to_str().unwrap()
        );
    }
}
fn replace_def_with_dec ( module : & Module , re : & Regex ) { for fun in get_function_by_regex ( module , re ) { delete_body ( & fun ) ; fun . remove_personality_function ( ) ; fun . set_linkage ( Linkage :: External ) ; info ! ( " " fun get_name ( ) to_str ( ) unwrap ( ) ) ; } }
Change a function to a declaration by
deleting all basic blocks and modifying metadata
such as personality_function, linkage, etc.
Change a function to a declaration by deleting all basic blocks and modifying metadata such as personality_function linkage etc .
module
&Module
re
&Regex
module
&Module
re
&Regex