]> granicus.if.org Git - clang/commit
[DebugInfo] Generate debug information for labels. (After fix PR39094)
authorHsiangkai Wang <hsiangkai@gmail.com>
Tue, 23 Oct 2018 08:06:21 +0000 (08:06 +0000)
committerHsiangkai Wang <hsiangkai@gmail.com>
Tue, 23 Oct 2018 08:06:21 +0000 (08:06 +0000)
commit31129ec6205c93c80c1940e953ea85ff33798939
treeba16688c6a97e8ee7be92efc5aa4d6db01043091
parent8ef48b9ced3807e01cfa4ce52c0835a1b9538a2f
[DebugInfo] Generate debug information for labels. (After fix PR39094)

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.
After fixing PR39094.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@345009 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]