/// Creates a function-specific debug context for a function w/o debuginfo.
Creates a function-specific debug context for a function w/o debuginfo.
Creates a function - specific debug context for a function w / o debuginfo .
pub fn empty_function_debug_context<'a, 'tcx>(cx: &CrateContext<'a, 'tcx>)
                                              -> FunctionDebugContext {
    if cx.sess().opts.debuginfo == NoDebugInfo {
        return FunctionDebugContext::DebugInfoDisabled;
    }
    // Clear the debug location so we don't assign them in the function prelude.
    source_loc::set_debug_location(cx, None, UnknownLocation);
    FunctionDebugContext::FunctionWithoutDebugInfo
}
pub fn empty_function_debug_context < ' a , ' tcx > ( cx : & CrateContext < ' a , ' tcx > ) -> FunctionDebugContext { if cx . sess ( ) . opts . debuginfo == NoDebugInfo { return FunctionDebugContext :: DebugInfoDisabled ; } // Clear the debug location so we don't assign them in the function prelude. source_loc :: set_debug_location ( cx , None , UnknownLocation ) ; FunctionDebugContext :: FunctionWithoutDebugInfo }
Creates a function-specific debug context for a function w/o debuginfo.
Creates a function - specific debug context for a function w / o debuginfo .
cx
&CrateContext<'a, 'tcx>