about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2023-07-24 17:47:47 +1000
committerZalathar <Zalathar@users.noreply.github.com>2023-08-04 10:48:05 +1000
commit4b154bc8e2bed4c69ae46dd761780a452073f771 (patch)
treee2f5372beab4d421f405fadc69bf2054432cde74 /compiler/rustc_codegen_llvm/src/llvm
parente1841186834fa53abccacc8742025986bfaf5f9e (diff)
downloadrust-4b154bc8e2bed4c69ae46dd761780a452073f771.tar.gz
rust-4b154bc8e2bed4c69ae46dd761780a452073f771.zip
coverage: Don't convert symbol names to `CString` for FFI
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm')
-rw-r--r--compiler/rustc_codegen_llvm/src/llvm/ffi.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
index 8ad438ab8ae..69b1fd9c2d2 100644
--- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
+++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
@@ -1720,7 +1720,11 @@ extern "C" {
         BufferOut: &RustString,
     );
 
-    pub fn LLVMRustCoverageCreatePGOFuncNameVar(F: &Value, FuncName: *const c_char) -> &Value;
+    pub fn LLVMRustCoverageCreatePGOFuncNameVar(
+        F: &Value,
+        FuncName: *const c_char,
+        FuncNameLen: size_t,
+    ) -> &Value;
     pub fn LLVMRustCoverageHashByteArray(Bytes: *const c_char, NumBytes: size_t) -> u64;
 
     #[allow(improper_ctypes)]