Re-apply r206096 after investigating the gdb buildbot failure.
authorAdrian Prantl <aprantl@apple.com>
Mon, 14 Apr 2014 21:16:04 +0000 (21:16 +0000)
committerAdrian Prantl <aprantl@apple.com>
Mon, 14 Apr 2014 21:16:04 +0000 (21:16 +0000)
commit7a6948924294192da82b7224780d572b9fe4b4fa
treeffc0adc27751a4396a0ffcb3f2aee48048484c1d
parent1a7758374276003772ec7d1c3b7b83fc9dadf297
Re-apply r206096 after investigating the gdb buildbot failure.
Thanks to dblaikie for updating the testcase!

Debug info: (bugfix) C++ C/Dtors can be compiled to multiple functions,
therefore, their declaration cannot have one DW_AT_linkage_name.
The specific instances however can and should have that attribute.

This patch reorders the code in DwarfUnit::getOrCreateSubprogramDIE()
to emit linkage names for C/Dtors.

rdar://problem/16362674.

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