[PATCH] D50495: [DebugInfo] Do not generate duplicated label debug info if it has been processed.

Hsiangkai Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 9 01:39:07 PDT 2018


HsiangKai created this revision.
HsiangKai added reviewers: aprantl, probinson, dblaikie.
Herald added a subscriber: JDevlieghere.

In DwarfDebug::collectEntityInfo(), if the label entity is processed in DbgLabels list, it means the label is not optimized out. There is no need to generate debug info for it with null position.

The bug is reported by vext01 in https://reviews.llvm.org/D45045#1190748


Repository:
  rL LLVM

https://reviews.llvm.org/D50495

Files:
  lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
  lib/CodeGen/AsmPrinter/CodeViewDebug.h
  lib/CodeGen/AsmPrinter/DbgEntityHistoryCalculator.cpp
  lib/CodeGen/AsmPrinter/DbgEntityHistoryCalculator.h
  lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
  lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  lib/CodeGen/AsmPrinter/DwarfDebug.h
  test/DebugInfo/Generic/debug-label.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50495.159871.patch
Type: text/x-patch
Size: 19200 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180809/9df54add/attachment.bin>


More information about the llvm-commits mailing list