summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.h
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.h
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.h')
-rw-r--r--llvm/unittests/DebugInfo/DWARF/DwarfGenerator.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.h b/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.h
index 966725b4fa4..2978d1ca002 100644
--- a/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.h
+++ b/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.h
@@ -129,6 +129,9 @@ public:
/// \returns the newly created DIE object that is now a child owned by this
/// object.
dwarfgen::DIE addChild(dwarf::Tag Tag);
+
+ /// Force a DIE to say it has children even when it doesn't.
+ void setForceChildren();
};
/// A DWARF compile unit used to generate DWARF compile/type units.
OpenPOWER on IntegriCloud