]> granicus.if.org Git - clang/commit
[DebugInfo] Generate debug information for labels. (Fix PR37395)
authorHsiangkai Wang <hsiangkai@gmail.com>
Thu, 6 Sep 2018 06:03:36 +0000 (06:03 +0000)
committerHsiangkai Wang <hsiangkai@gmail.com>
Thu, 6 Sep 2018 06:03:36 +0000 (06:03 +0000)
commit84c42fee1b534471a71da9cb41b6efe9e61894a4
treea1b06b54bd2d7d26e5e3fe152853eaef10da536e
parent5786130f48520f80c14529cdbdf48968168b9a41
[DebugInfo] Generate debug information for labels. (Fix PR37395)

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.

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

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