This is an archive of the discontinued LLVM Phabricator instance.

DomTree: Remove getChildren() accessor
ClosedPublic

Authored by nhaehnle on Jul 2 2020, 2:06 PM.

Details

Summary

Avoid exposing details about how children are stored. This will enable
subsequent type-erasure changes.

New methods are introduced to cover common access patterns.

Change-Id: Idb5f4b1b9c84e4cc71ddb39bb52a388682f5674f

Diff Detail

Event Timeline

nhaehnle created this revision.Jul 2 2020, 2:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 2 2020, 2:06 PM
arsenm accepted this revision.Jul 2 2020, 6:26 PM

This seems like a straightforward improvement

This revision is now accepted and ready to land.Jul 2 2020, 6:26 PM
This revision was automatically updated to reflect the committed changes.