OSDN Git Service

[codeview] Use comdats for debug info describing comdat functions
authorReid Kleckner <rnk@google.com>
Wed, 25 May 2016 23:16:12 +0000 (23:16 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 25 May 2016 23:16:12 +0000 (23:16 +0000)
commit8cc1c5e65ba72f1af99e46d742e29e3888500a2d
treed79be36cbd54faf7905f3566b1a2f4d8f3cec374
parentb9f73597f63b774be4012141a96174740dc819df
[codeview] Use comdats for debug info describing comdat functions

Summary:
This allows the linker to discard unused symbol information for comdat
functions that were discarded during the link. Before this change,
searching for the name of an inline function in the debugger would
return multiple results, one per symbol subsection in the object file.
After this change, there is only one result, the result for the function
chosen by the linker.

Reviewers: zturner, majnemer

Subscribers: aaboud, amccarth, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270792 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
lib/CodeGen/AsmPrinter/CodeViewDebug.h
test/DebugInfo/COFF/asm.ll
test/DebugInfo/COFF/comdat.ll [new file with mode: 0644]
test/DebugInfo/COFF/multifile.ll
test/DebugInfo/COFF/multifunction.ll
test/DebugInfo/COFF/simple.ll