summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.h
diff options
context:
space:
mode:
authorHsiangkai Wang <hsiangkai@gmail.com>2018-08-06 05:58:59 +0000
committerHsiangkai Wang <hsiangkai@gmail.com>2018-08-06 05:58:59 +0000
commit3bec3abf3877c2187582b18cdd0c4a88415139ed (patch)
tree6e5190679eb9d5d74ae2fb07702056aa09c89ea0 /clang/lib/CodeGen/CGDebugInfo.h
parenteded4abef8ddaca246ad21f3f79a9555a0c27333 (diff)
downloadbcm5719-llvm-3bec3abf3877c2187582b18cdd0c4a88415139ed.tar.gz
bcm5719-llvm-3bec3abf3877c2187582b18cdd0c4a88415139ed.zip
[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. Differential Revision: https://reviews.llvm.org/D45045 llvm-svn: 338989
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.h')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h
index e632806138f..0047a07d9d9 100644
--- a/clang/lib/CodeGen/CGDebugInfo.h
+++ b/clang/lib/CodeGen/CGDebugInfo.h
@@ -399,6 +399,9 @@ public:
llvm::Value *AI,
CGBuilderTy &Builder);
+ /// Emit call to \c llvm.dbg.label for an label.
+ void EmitLabel(const LabelDecl *D, CGBuilderTy &Builder);
+
/// Emit call to \c llvm.dbg.declare for an imported variable
/// declaration in a block.
void EmitDeclareOfBlockDeclRefVariable(
OpenPOWER on IntegriCloud