diff options
author | Greg Clayton <gclayton@apple.com> | 2017-01-05 23:47:37 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2017-01-05 23:47:37 +0000 |
commit | 93e4fe8aad0a68f33e8655e6d78f1aa85582674a (patch) | |
tree | 1b6c7401a6cc85eb52dd0a5dd57154a98f19aa0e /llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp | |
parent | ce542eefe3eb3b4c2e1b40d3dfda55f0f8183904 (diff) | |
download | bcm5719-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.cpp | 4 |
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. //===----------------------------------------------------------------------===// |