[PATCH] D45024: [DebugInfo] Add DILabel metadata and create class DILabel.
Hsiangkai Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 29 06:54:21 PDT 2018
HsiangKai created this revision.
HsiangKai added reviewers: rnk, chenwj.
Herald added subscribers: JDevlieghere, aprantl.
We need to record debug information in LLVM IR. In LLVM
IR, LLVM uses metadata and intrinsic function to keep debug
information. So, we need to define new kind of metadata, DILabel, and
new intrinsic function, llvm.dbg.label, to associate DILabel with
label statement.
DILabel will contain name of the label, file metadata, line number,
and scope metadata.
Use class DILabel to store information of DILabel metadata.
Repository:
rL LLVM
https://reviews.llvm.org/D45024
Files:
include/llvm/IR/DebugInfoMetadata.h
include/llvm/IR/Metadata.def
lib/IR/DebugInfoMetadata.cpp
lib/IR/LLVMContextImpl.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45024.140220.patch
Type: text/x-patch
Size: 5658 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180329/fcc97dd7/attachment.bin>
More information about the llvm-commits
mailing list