auto merge of #17364 : thestinger/rust/debuginfo, r=pnkfelix

Closes #13611
This commit is contained in:
bors 2014-09-18 11:05:38 +00:00
commit d485e87c57

View file

@ -738,12 +738,6 @@ pub fn finalize(cx: &CrateContext) {
cx.sess().targ_cfg.os == abi::OsiOS { cx.sess().targ_cfg.os == abi::OsiOS {
"Dwarf Version".with_c_str( "Dwarf Version".with_c_str(
|s| llvm::LLVMRustAddModuleFlag(cx.llmod(), s, 2)); |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. // Prevent bitcode readers from deleting the debug info.