summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2017-01-05 23:47:37 +0000
committerGreg Clayton <gclayton@apple.com>2017-01-05 23:47:37 +0000
commit93e4fe8aad0a68f33e8655e6d78f1aa85582674a (patch)
tree1b6c7401a6cc85eb52dd0a5dd57154a98f19aa0e /llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp
parentce542eefe3eb3b4c2e1b40d3dfda55f0f8183904 (diff)
downloadbcm5719-llvm-93e4fe8aad0a68f33e8655e6d78f1aa85582674a.tar.gz
bcm5719-llvm-93e4fe8aad0a68f33e8655e6d78f1aa85582674a.zip
Add iterator support to DWARFDie to allow child DIE iteration.
Differential Revision: https://reviews.llvm.org/D28303 llvm-svn: 291194
Diffstat (limited to 'llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp')
-rw-r--r--llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp b/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp
index 9a72f70a0f2..9ec43cab4dc 100644
--- a/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp
+++ b/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp
@@ -108,6 +108,10 @@ dwarfgen::DIE dwarfgen::CompileUnit::getUnitDIE() {
return dwarfgen::DIE(this, &DU.getUnitDie());
}
+void dwarfgen::DIE::setForceChildren() {
+ Die->setForceChildren(true);
+}
+
//===----------------------------------------------------------------------===//
/// dwarfgen::Generator implementation.
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud