diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2020-03-11 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2020-03-11 23:56:41 +0100 |
| commit | 24dc2cb133d5b1cdd0680b91e4295039d704a610 (patch) | |
| tree | 7bb4f6a2fe1e7aed3bf09f9958f260ddd49c5d9b /src/librustc_codegen_llvm/debuginfo | |
| parent | c20d7eecbc0928b57da8fe30b2ef8528e2bdd5be (diff) | |
| download | rust-24dc2cb133d5b1cdd0680b91e4295039d704a610.tar.gz rust-24dc2cb133d5b1cdd0680b91e4295039d704a610.zip | |
librustc_codegen_llvm: Replace deprecated API usage
Diffstat (limited to 'src/librustc_codegen_llvm/debuginfo')
| -rw-r--r-- | src/librustc_codegen_llvm/debuginfo/gdb.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/debuginfo/gdb.rs b/src/librustc_codegen_llvm/debuginfo/gdb.rs index 753a4e18faf..d6fbc53fd37 100644 --- a/src/librustc_codegen_llvm/debuginfo/gdb.rs +++ b/src/librustc_codegen_llvm/debuginfo/gdb.rs @@ -50,7 +50,7 @@ pub fn get_or_insert_gdb_debug_scripts_section_global(cx: &CodegenCx<'ll, '_>) - llvm::LLVMSetSection(section_var, section_name.as_ptr().cast()); llvm::LLVMSetInitializer(section_var, cx.const_bytes(section_contents)); llvm::LLVMSetGlobalConstant(section_var, llvm::True); - llvm::LLVMSetUnnamedAddr(section_var, llvm::True); + llvm::LLVMSetUnnamedAddress(section_var, llvm::UnnamedAddr::Global); llvm::LLVMRustSetLinkage(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. |
