Debug info: (bugfix) C++ C/Dtors can be compiled to multiple functions,
authorAdrian Prantl <aprantl@apple.com>
Sat, 12 Apr 2014 01:44:42 +0000 (01:44 +0000)
committerAdrian Prantl <aprantl@apple.com>
Sat, 12 Apr 2014 01:44:42 +0000 (01:44 +0000)
commit515f2f96114b8279651c711079d16d6530110de1
treee57adbe032d401b34743f1f1991a1cd1b2401f94
parentd023e14a5e2af661d1bca44939f5b433fd00a238
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@206096 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