coverage: Don't convert symbol names to CString for FFI

This commit is contained in:
Zalathar 2023-07-24 17:47:47 +10:00
parent e184118683
commit 4b154bc8e2
3 changed files with 18 additions and 7 deletions

View file

@ -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)]