mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-07 11:59:09 +00:00
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:
parent
00d06ddc76
commit
2d0724382e
@ -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.
|
||||
|
@ -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;
|
||||
|
@ -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>>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user