rust/compiler/rustc_codegen_llvm/src
David Wood ee073b5ec5
cg_llvm: split dwarf filename and comp dir
llvm-dwp concatenates `DW_AT_comp_dir` with `DW_AT_GNU_dwo_name` (only
when `DW_AT_comp_dir` exists), which can result in it failing to find
the DWARF object files.

In earlier testing, `DW_AT_comp_dir` wasn't present in the final
object and the current directory was the output directory.

When running tests through compiletest, the working directory of the
compilation is different from output directory and that resulted in
`DW_AT_comp_dir` being in the object file (and set to the current
working directory, rather than the output directory), and
`DW_AT_GNU_dwo_name` being set to the full path (rather than just
the filename), so llvm-dwp was failing.

This commit changes the compilation directory provided to LLVM to match
the output directory, where DWARF objects are output; and ensures that
only the filename is used for `DW_AT_GNU_dwo_name`.

Signed-off-by: David Wood <david@davidtw.co>
2020-12-16 10:33:52 +00:00
..
back cg_llvm: split dwarf filename and comp dir 2020-12-16 10:33:52 +00:00
coverageinfo Fixes to Rust coverage 2020-12-07 17:56:19 -08:00
debuginfo cg_llvm: split dwarf filename and comp dir 2020-12-16 10:33:52 +00:00
llvm llvm: update ffi bindings for split dwarf 2020-12-16 10:31:42 +00:00
abi.rs Rename prefix_chunk to prefix_chunk_size 2020-11-21 19:22:31 +01:00
allocator.rs Collapse all uses of target.options.foo into target.foo 2020-11-08 17:29:13 +03:00
asm.rs Add wasm32 support to inline asm 2020-12-01 12:18:21 -06:00
attributes.rs Combination of commits 2020-12-03 09:50:10 -08:00
base.rs [self-profiling] Include the estimated size of each cgu in the profile 2020-11-03 07:55:17 -05:00
builder.rs Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
callee.rs rustc_target: Rename some target options to avoid tautology 2020-11-08 17:29:13 +03:00
common.rs s/Scalar::Raw/Scalar::Int 2020-11-04 10:11:31 +00:00
consts.rs Collapse all uses of target.options.foo into target.foo 2020-11-08 17:29:13 +03:00
context.rs Removed an unused function now that LLVM 9 is the minimal supported version 2020-11-12 14:39:47 +01:00
declare.rs Collapse all uses of target.options.foo into target.foo 2020-11-08 17:29:13 +03:00
intrinsic.rs use strip_prefix over slicing (clippy::manual_strip) 2020-12-11 23:02:17 +01:00
lib.rs cg_llvm: split dwarf filename and comp dir 2020-12-16 10:33:52 +00:00
llvm_util.rs Rollup merge of #78361 - DevJPM:master, r=workingjubilee 2020-11-18 15:46:19 +01:00
metadata.rs Collapse all uses of target.options.foo into target.foo 2020-11-08 17:29:13 +03:00
mono_item.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
type_.rs Remove MMX from Rust 2020-09-20 15:13:11 +02:00
type_of.rs compiler: fold by value 2020-11-16 22:34:57 +01:00
va_arg.rs rustc_target: Rename some target options to avoid tautology 2020-11-08 17:29:13 +03:00
value.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00