mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-18 10:24:45 +00:00
AsmPrinter: Stop exposing underlying DIE children list, NFC
Update `DIE` API to hide the implementation of `DIE::Children` so we can swap it out. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238468 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user