From 98fff20a7c95bdbb32652a95fd3211f743218b46 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Thu, 18 Sep 2014 01:10:12 -0400 Subject: [PATCH] stop clamping the DWARF version to 3 on Linux Closes #13611 --- src/librustc/middle/trans/debuginfo.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/librustc/middle/trans/debuginfo.rs b/src/librustc/middle/trans/debuginfo.rs index 359da14d57e..62571ef9f9b 100644 --- a/src/librustc/middle/trans/debuginfo.rs +++ b/src/librustc/middle/trans/debuginfo.rs @@ -738,12 +738,6 @@ pub fn finalize(cx: &CrateContext) { cx.sess().targ_cfg.os == abi::OsiOS { "Dwarf Version".with_c_str( |s| llvm::LLVMRustAddModuleFlag(cx.llmod(), s, 2)); - } else if cx.sess().targ_cfg.os == abi::OsLinux { - // FIXME(#13611) this is a kludge fix because the Linux bots have - // gdb 7.4 which doesn't understand dwarf4, we should - // do something more graceful here. - "Dwarf Version".with_c_str( - |s| llvm::LLVMRustAddModuleFlag(cx.llmod(), s, 3)); } // Prevent bitcode readers from deleting the debug info.