[PATCH] D28386: Add the ability to iterate across all attributes in a DIE.
Greg Clayton via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 9 14:21:41 PST 2017
clayborg updated this revision to Diff 83698.
clayborg added a comment.
Added optional error handling to the attributes iterators. You can now pass an "llvm::Error *" to the attributes():
attribute_iterator DWARFDie::attributes(llvm::Error *Err);
If the error is non-NULL, then the error will be filled in. This iteration error is the same method used in Archive.h/Archive.cpp after I spoke with Lang Hames.
https://reviews.llvm.org/D28386
Files:
include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h
include/llvm/DebugInfo/DWARF/DWARFAttribute.h
include/llvm/DebugInfo/DWARF/DWARFDie.h
lib/DebugInfo/DWARF/DWARFDie.cpp
unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28386.83698.patch
Type: text/x-patch
Size: 12771 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170109/584bf7e9/attachment.bin>
More information about the llvm-commits
mailing list