1
Fork 0

fix: get llvm type of global val

This commit is contained in:
yifei 2024-08-08 19:29:47 +08:00
parent 9337f7afa6
commit 27f92b6c10
2 changed files with 2 additions and 1 deletions

View file

@ -974,6 +974,7 @@ extern "C" {
pub fn LLVMGetAlignment(Global: &Value) -> c_uint;
pub fn LLVMSetAlignment(Global: &Value, Bytes: c_uint);
pub fn LLVMSetDLLStorageClass(V: &Value, C: DLLStorageClass);
pub fn LLVMGlobalGetValueType(Global: &Value) -> &Type;
// Operations on global variables
pub fn LLVMIsAGlobalVariable(GlobalVar: &Value) -> Option<&Value>;