Pass value and valueLen to create a StringRef

Instead of creating a cstring.

Co-authored-by: LoveSy <shana@zju.edu.cn>
This commit is contained in:
Levi Zim 2024-04-09 14:47:06 +08:00 committed by kxxt
parent adec1a2e84
commit 33db20978e
3 changed files with 10 additions and 10 deletions

View file

@ -1813,6 +1813,7 @@ extern "C" {
merge_behavior: LLVMModFlagBehavior,
name: *const c_char,
value: *const c_char,
value_len: size_t,
);
pub fn LLVMRustHasModuleFlag(M: &Module, name: *const c_char, len: size_t) -> bool;