diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2023-07-24 17:47:47 +1000 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2023-08-04 10:48:05 +1000 |
| commit | 4b154bc8e2bed4c69ae46dd761780a452073f771 (patch) | |
| tree | e2f5372beab4d421f405fadc69bf2054432cde74 /compiler/rustc_codegen_llvm/src/llvm | |
| parent | e1841186834fa53abccacc8742025986bfaf5f9e (diff) | |
| download | rust-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.rs | 6 |
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)] |
