OSDN Git Service

DebugInfo: Include the decl_line/decl_file in subprogram definitions if they differ...
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 7 Oct 2015 00:04:16 +0000 (00:04 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 7 Oct 2015 00:04:16 +0000 (00:04 +0000)
commit968a34455010e03f7d6d4e9c344236189e3096f7
tree80d34985410f662c315d9501cdffdfc5d4e5b093
parent4d2c1b67133b43093a822290ca43b9ceb488c1e7
DebugInfo: Include the decl_line/decl_file in subprogram definitions if they differ from those in the declaration

This is handy for some AutoFDO stuff, and seems like a minor improvement
to correctness (otherwise a debug info consumer might think the decl
line/file of the def was the same as that of the declaration - though
what a consumer might use that for, I'm not sure - maybe "list <func>"
would've misbehaved with the old behavior?) and at a minor cost (in my
experiment, with fission, without type units, without compression, 0.01%
growth in debug info in the executable/objects, 0.02% growth in the .dwo
files).

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