Emit correct linkage-name attribute based on DWARF version.
authorPaul Robinson <paul_robinson@playstation.sony.com>
Tue, 10 Mar 2015 22:44:45 +0000 (22:44 +0000)
committerPaul Robinson <paul_robinson@playstation.sony.com>
Tue, 10 Mar 2015 22:44:45 +0000 (22:44 +0000)
commit107918efa254841227ea3920db052f53337f5e0c
tree20288bc0c2ac8f58b7b838e0059cc6f9281ada21
parent7c7b72a066d04945f8c150b801e967a6714ad6a2
Emit correct linkage-name attribute based on DWARF version.

There are still 4 tests that check for DW_AT_MIPS_linkage_name,
because they specify DWARF 2 or 3 in the module metadata. So, I didn't
create an explicit version-based test for the attribute.

Differential Revision: http://reviews.llvm.org/D8227

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231880 91177308-0d34-0410-b5e6-96231b3b80d8
16 files changed:
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
lib/CodeGen/AsmPrinter/DwarfUnit.h
test/DebugInfo/2010-04-06-NestedFnDbgInfo.ll
test/DebugInfo/PR20038.ll
test/DebugInfo/X86/DW_AT_specification.ll
test/DebugInfo/X86/arguments.ll
test/DebugInfo/X86/concrete_out_of_line.ll
test/DebugInfo/X86/debug-info-static-member.ll
test/DebugInfo/X86/debug-loc-offset.ll
test/DebugInfo/X86/gnu-public-names.ll
test/DebugInfo/X86/linkage-name.ll
test/DebugInfo/X86/pr11300.ll
test/DebugInfo/namespace_function_definition.ll
test/DebugInfo/namespace_inline_function_definition.ll
test/Linker/type-unique-odr-a.ll