diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2024-10-25 21:40:38 +1100 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2024-10-26 20:20:18 +1100 |
| commit | 983d258be3cbfc72a806c870a69743b6d14e4a33 (patch) | |
| tree | 134bf78f9685f4830a25b764d47d2c3e3066fe9a /compiler/rustc_codegen_llvm/src/debuginfo | |
| parent | 144a12acdd673f333b420e946965621be76d3544 (diff) | |
| download | rust-983d258be3cbfc72a806c870a69743b6d14e4a33.tar.gz rust-983d258be3cbfc72a806c870a69743b6d14e4a33.zip | |
Use safe wrappers `get_linkage` and `set_linkage`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/debuginfo')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/debuginfo/gdb.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/gdb.rs b/compiler/rustc_codegen_llvm/src/debuginfo/gdb.rs index f93d3e40b20..7947c9c8c8e 100644 --- a/compiler/rustc_codegen_llvm/src/debuginfo/gdb.rs +++ b/compiler/rustc_codegen_llvm/src/debuginfo/gdb.rs @@ -76,7 +76,7 @@ pub(crate) fn get_or_insert_gdb_debug_scripts_section_global<'ll>( llvm::LLVMSetInitializer(section_var, cx.const_bytes(section_contents)); llvm::LLVMSetGlobalConstant(section_var, llvm::True); llvm::LLVMSetUnnamedAddress(section_var, llvm::UnnamedAddr::Global); - llvm::LLVMRustSetLinkage(section_var, llvm::Linkage::LinkOnceODRLinkage); + llvm::set_linkage(section_var, llvm::Linkage::LinkOnceODRLinkage); // This should make sure that the whole section is not larger than // the string it contains. Otherwise we get a warning from GDB. llvm::LLVMSetAlignment(section_var, 1); |
