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)
commit78046b49a9397db7899a7879e0a88d26f0199025
tree2e38da1bae46828d95b66b19c344dae5c403bb11
parent45be450070170249ac44043e705d4587a9c53205
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

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