]> git.proxmox.com Git - rustc.git/blobdiff - src/librustc_trans/debuginfo/gdb.rs
New upstream version 1.13.0+dfsg1
[rustc.git] / src / librustc_trans / debuginfo / gdb.rs
index 0a8d490dcd2dd3e54601a69484f44d1eddf7aaea..8f937d3fe25cbd4e6716b22e0c3a9c4baa28bb1b 100644 (file)
@@ -77,7 +77,7 @@ pub fn get_or_insert_gdb_debug_scripts_section_global(ccx: &CrateContext)
             llvm::LLVMSetInitializer(section_var, C_bytes(ccx, section_contents));
             llvm::LLVMSetGlobalConstant(section_var, llvm::True);
             llvm::LLVMSetUnnamedAddr(section_var, llvm::True);
-            llvm::LLVMSetLinkage(section_var, llvm::Linkage::LinkOnceODRLinkage);
+            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.
             llvm::LLVMSetAlignment(section_var, 1);