Make DW_AT_[MIPS_]linkage_name optional, and off by default for SCE.
authorPaul Robinson <paul_robinson@playstation.sony.com>
Tue, 11 Aug 2015 21:36:45 +0000 (21:36 +0000)
committerPaul Robinson <paul_robinson@playstation.sony.com>
Tue, 11 Aug 2015 21:36:45 +0000 (21:36 +0000)
commitbbf32bd275fb1ab0a18824924437de5966f73832
treea706beb740abd4f46dde205eb237f4e428d32b79
parent162f046004b302fd1aa2d3c27df43ee163c4c6b6
Make DW_AT_[MIPS_]linkage_name optional, and off by default for SCE.

Mangled "linkage" names can be huge, and if the debugger (or other
tools) have no use for them, the size savings can be very impressive
(on the order of 40%).

Add one test for controlling behavior, and modify a number of tests to
either stop using linkage names, or make llc emit them (so these tests
will still run when the default triple is for PS4).

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244678 91177308-0d34-0410-b5e6-96231b3b80d8
17 files changed:
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
test/DebugInfo/2010-04-06-NestedFnDbgInfo.ll
test/DebugInfo/PR20038.ll
test/DebugInfo/X86/dwarf-linkage-names.ll [new file with mode: 0644]
test/DebugInfo/X86/recursive_inlining.ll
test/DebugInfo/cross-cu-inlining.ll
test/DebugInfo/enum-types.ll
test/DebugInfo/incorrect-variable-debugloc.ll
test/DebugInfo/missing-abstract-variable.ll
test/DebugInfo/namespace.ll
test/DebugInfo/namespace_function_definition.ll
test/DebugInfo/namespace_inline_function_definition.ll
test/Linker/type-unique-odr-a.ll
test/Linker/type-unique-simple2-a.ll
test/Linker/type-unique-type-array-a.ll