Declare PostDominatorTree as a class

Before it was declared at a struct, which differs from
DominatorTree. Make it a class so both can be declared
the same way without hitting the warning about mismatched
struct vs. class declarations.

llvm-svn: 324760
This commit is contained in:
Matt Arsenault 2018-02-09 18:41:42 +00:00
parent 00d06ddc76
commit 2d0724382e
3 changed files with 4 additions and 3 deletions

View File

@ -26,7 +26,8 @@ class raw_ostream;
/// PostDominatorTree Class - Concrete subclass of DominatorTree that is used to
/// compute the post-dominator tree.
struct PostDominatorTree : public PostDomTreeBase<BasicBlock> {
class PostDominatorTree : public PostDomTreeBase<BasicBlock> {
public:
using Base = PostDomTreeBase<BasicBlock>;
/// Handle invalidation explicitly.

View File

@ -62,7 +62,7 @@ class DominanceFrontier;
class DominatorTree;
class Loop;
class LoopInfo;
struct PostDominatorTree;
class PostDominatorTree;
class Region;
template <class RegionTr> class RegionBase;
class RegionInfo;

View File

@ -52,7 +52,7 @@ struct SemiNCAInfo;
/// \brief Base class for the actual dominator tree node.
template <class NodeT> class DomTreeNodeBase {
friend struct PostDominatorTree;
friend class PostDominatorTree;
friend class DominatorTreeBase<NodeT, false>;
friend class DominatorTreeBase<NodeT, true>;
friend struct DomTreeBuilder::SemiNCAInfo<DominatorTreeBase<NodeT, false>>;