fn create_pgo_func_name_var(&self, instance: Instance<'tcx>) -> Self::Value {
        let llfn = self.cx.get_fn(instance);
        let mangled_fn_name = CString::new(self.tcx.symbol_name(instance).name)
            .expect("error converting function name to C string");
        unsafe { llvm::LLVMRustCoverageCreatePGOFuncNameVar(llfn, mangled_fn_name.as_ptr()) }
    }
/// Calls llvm::createPGOFuncNameVar() with the given function instance's mangled function name.
/// The LLVM API returns an llvm::GlobalVariable containing the function name, with the specific
/// variable name and linkage required by LLVM InstrProf source-based coverage instrumentation.
Calls llvm::createPGOFuncNameVar() with the given function instance's mangled function name.
The LLVM API returns an llvm::GlobalVariable containing the function name, with the specific
variable name and linkage required by LLVM InstrProf source-based coverage instrumentation.
Calls llvm :: createPGOFuncNameVar () with the given function instance ' s mangled function name . The LLVM API returns an llvm :: GlobalVariable containing the function name with the specific variable name and linkage required by LLVM InstrProf source - based coverage instrumentation .
fn create_pgo_func_name_var(&self, instance: Instance<'tcx>) -> Self::Value {
        let llfn = self.cx.get_fn(instance);
        let mangled_fn_name = CString::new(self.tcx.symbol_name(instance).name)
            .expect("error converting function name to C string");
        unsafe { llvm::LLVMRustCoverageCreatePGOFuncNameVar(llfn, mangled_fn_name.as_ptr()) }
    }
fn create_pgo_func_name_var ( & self , instance : Instance < ' tcx > ) -> Self :: Value { let llfn = self . cx . get_fn ( instance ) ; let mangled_fn_name = CString :: new ( self . tcx . symbol_name ( instance ) . name ) . expect ( " " ) ; unsafe { llvm :: LLVMRustCoverageCreatePGOFuncNameVar ( llfn , mangled_fn_name . as_ptr ( ) ) } }
Calls llvm::createPGOFuncNameVar() with the given function instance's mangled function name.
Calls llvm :: createPGOFuncNameVar () with the given function instance ' s mangled function name .
&self
instance
Instance<'tcx>
&self
instance
Instance<'tcx>