]> granicus.if.org Git - clang/commit
[DebugInfo] Generate debug information for labels.
authorHsiangkai Wang <hsiangkai@gmail.com>
Wed, 26 Sep 2018 22:18:45 +0000 (22:18 +0000)
committerHsiangkai Wang <hsiangkai@gmail.com>
Wed, 26 Sep 2018 22:18:45 +0000 (22:18 +0000)
commit11ebe64f8b742a1ba4bc121b1b8994cbb315d851
tree7d289ad6cb620048584be909a1735f09afd2e485
parent2bc7aaa80dae44ad8d424ccf6aab60b5347434e4
[DebugInfo] Generate debug information for labels.

Generate DILabel metadata and call llvm.dbg.label after label
statement to associate the metadata with the label.

After fixing PR37395.
After fixing problems in LiveDebugVariables.
After fixing NULL symbol problems in AddressPool when enabling
split-dwarf-file.

Differential Revision: https://reviews.llvm.org/D45045

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@343148 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CGDebugInfo.h
lib/CodeGen/CGStmt.cpp
test/CodeGen/debug-label-inline.c [new file with mode: 0644]
test/CodeGen/debug-label.c [new file with mode: 0644]