OSDN Git Service

[DebugInfo] Do not generate label debug info if it has been processed.
authorHsiangkai Wang <hsiangkai@gmail.com>
Thu, 6 Sep 2018 02:22:06 +0000 (02:22 +0000)
committerHsiangkai Wang <hsiangkai@gmail.com>
Thu, 6 Sep 2018 02:22:06 +0000 (02:22 +0000)
commit799544783a65c86776e410a6eab9da667a19a521
tree99dfcb372555c106c9843c26af0a0c3990348e01
parentb9c9629e618b883df7f03dc92f0d23eeca38693f
[DebugInfo] Do not generate label debug info if it has been processed.

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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341513 91177308-0d34-0410-b5e6-96231b3b80d8
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