]> granicus.if.org Git - llvm/commit
[DebugInfo] Apply subprogram attributes on behalf of owner CU
authorEugene Leviant <eleviant@accesssoftek.com>
Wed, 27 Feb 2019 14:46:59 +0000 (14:46 +0000)
committerEugene Leviant <eleviant@accesssoftek.com>
Wed, 27 Feb 2019 14:46:59 +0000 (14:46 +0000)
commit39c9db161471e7f818c0d5e4478ceed111590643
treeda2e54723dbf0d683a532bc4aa9f4476e8b7da9b
parentc8b052a5c3e9e78449ef06284880111e629be811
[DebugInfo] Apply subprogram attributes on behalf of owner CU

When using full LTO it is possible that template function definition DIE
is bound to one compilation unit and it's declaration to another. We should
add function declaration attributes on behalf of its owner CU otherwise
we may end up with malformed file identifier in function declaration
DW_AT_decl_file attribute.

Differential revision: https://reviews.llvm.org/D58538

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354978 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/DIE.h
lib/CodeGen/AsmPrinter/DIE.cpp
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
test/DebugInfo/X86/template_function_decl.ll [new file with mode: 0644]