rust/compiler/rustc_codegen_llvm/src/llvm
Matthias Krüger f440999bb2
Rollup merge of #111167 - cuviper:type-decl-disubprogram, r=michaelwoerister
debuginfo: split method declaration and definition

When we're adding a method to a type DIE, we only want a DW_AT_declaration
there, because LLVM LTO can't unify type definitions when a child DIE is a
full subprogram definition. Now the subprogram definition gets added at the
CU level with a specification link back to the abstract declaration.

Both GCC and Clang write debuginfo this way for C++ class methods.

Fixes #109730.
Fixes #109934.
2023-05-06 13:30:05 +02:00
..
archive_ro.rs Use object instead of LLVM for reading bitcode from rlibs 2022-07-25 16:07:23 +00:00
diagnostic.rs Remove dead code from cg_llvm 2022-07-26 11:29:18 +00:00
ffi.rs Rollup merge of #111167 - cuviper:type-decl-disubprogram, r=michaelwoerister 2023-05-06 13:30:05 +02:00
mod.rs Recognize AIX style archive kind 2023-04-19 11:10:47 +08:00