This is an archive of the discontinued LLVM Phabricator instance.

DomTree: Remove getRoots() accessor
ClosedPublic

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

Details

Summary

Avoid exposing details about how roots are stored. This enables subsequent
type-erasure changes.

Change-Id: I532b774cc71f2224e543bc7d79131d97f63f093d

Diff Detail

Event Timeline

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

This is more consistent with other iteratables

llvm/unittests/IR/DominatorTreeTest.cpp
808

This should really be EXPECT_EQ(2, PDT.root_size())

This revision is now accepted and ready to land.Jul 2 2020, 6:33 PM
This revision was automatically updated to reflect the committed changes.
nhaehnle marked an inline comment as done.