diff options
| author | yifei <lyfmagic99@gmail.com> | 2024-08-08 19:29:47 +0800 |
|---|---|---|
| committer | yifei <lyfmagic99@gmail.com> | 2024-08-09 10:58:32 +0800 |
| commit | 27f92b6c10ecb0385f22409430b64d13c02dd7a4 (patch) | |
| tree | ebb5423fc3d5f3ab82fc6da5b11045fe02071c64 /compiler/rustc_codegen_llvm/src/llvm/ffi.rs | |
| parent | 9337f7afa6fda07e60d6aa5ee88e692878446782 (diff) | |
| download | rust-27f92b6c10ecb0385f22409430b64d13c02dd7a4.tar.gz rust-27f92b6c10ecb0385f22409430b64d13c02dd7a4.zip | |
fix: get llvm type of global val
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/ffi.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm/ffi.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs index 80b13c0e1d4..e2557ee8800 100644 --- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs +++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs @@ -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>; |
