diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-05-28 19:56:34 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-05-28 19:56:34 +0000 |
commit | 8d3197f65741d4e2282b6f97b4f68c83563a0722 (patch) | |
tree | eab4f9d74daabdffb9386ee568a94a5409b9f271 /llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp | |
parent | c7a7c8acca83b440ad106f0fc48e45b9d9ea5f29 (diff) | |
download | bcm5719-llvm-8d3197f65741d4e2282b6f97b4f68c83563a0722.tar.gz bcm5719-llvm-8d3197f65741d4e2282b6f97b4f68c83563a0722.zip |
AsmPrinter: Stop exposing underlying DIE children list, NFC
Update `DIE` API to hide the implementation of `DIE::Children` so we can
swap it out.
llvm-svn: 238468
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp index 1060366a8ba..5ef333c4cf4 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp @@ -105,15 +105,12 @@ unsigned DwarfFile::computeSizeAndOffset(DIE &Die, unsigned Offset) { // Size attribute value. Offset += V.SizeOf(Asm, V.getForm()); - // Get the children. - const auto &Children = Die.getChildren(); - // Size the DIE children if any. - if (!Children.empty()) { + if (Die.hasChildren()) { (void)Abbrev; assert(Abbrev.hasChildren() && "Children flag not set"); - for (auto &Child : Children) + for (auto &Child : Die.children()) Offset = computeSizeAndOffset(*Child, Offset); // End of children marker. |