Changes in directory llvm/include/llvm/Analysis:
Dominators.h updated: 1.54 -> 1.55 --- Log message: Use class tags instead of struct tags. The coding standards specify this for public classes for improved win32 compatibility. --- Diffs of the changes: (+18 -9) Dominators.h | 27 ++++++++++++++++++--------- 1 files changed, 18 insertions(+), 9 deletions(-) Index: llvm/include/llvm/Analysis/Dominators.h diff -u llvm/include/llvm/Analysis/Dominators.h:1.54 llvm/include/llvm/Analysis/Dominators.h:1.55 --- llvm/include/llvm/Analysis/Dominators.h:1.54 Mon Mar 20 13:32:48 2006 +++ llvm/include/llvm/Analysis/Dominators.h Fri May 19 12:17:12 2006 @@ -140,7 +140,8 @@ /// ImmediateDominators Class - Concrete subclass of ImmediateDominatorsBase /// that is used to compute a normal immediate dominator set. /// -struct ImmediateDominators : public ImmediateDominatorsBase { +class ImmediateDominators : public ImmediateDominatorsBase { +public: ImmediateDominators() : ImmediateDominatorsBase(false) {} BasicBlock *getRoot() const { @@ -169,7 +170,8 @@ /// is unreachable in this function, the set will be empty. This cannot happen /// for reachable code, because every block dominates at least itself. /// -struct DominatorSetBase : public DominatorBase { +class DominatorSetBase : public DominatorBase { +public: typedef std::set<BasicBlock*> DomSetType; // Dom set for a bb // Map of dom sets typedef std::map<BasicBlock*, DomSetType> DomSetMapType; @@ -255,7 +257,8 @@ /// DominatorSet Class - Concrete subclass of DominatorSetBase that is used to /// compute a normal dominator set. /// -struct DominatorSet : public DominatorSetBase { +class DominatorSet : public DominatorSetBase { +public: DominatorSet() : DominatorSetBase(false) {} virtual bool runOnFunction(Function &F); @@ -280,7 +283,8 @@ //===----------------------------------------------------------------------===// /// DominatorTree - Calculate the immediate dominator tree for a function. /// -struct DominatorTreeBase : public DominatorBase { +class DominatorTreeBase : public DominatorBase { +public: class Node; protected: std::map<BasicBlock*, Node*> Nodes; @@ -395,7 +399,8 @@ /// ET-Forest Class - Class used to construct forwards and backwards /// ET-Forests /// -struct ETForestBase : public DominatorBase { +class ETForestBase : public DominatorBase { +public: ETForestBase(bool isPostDom) : DominatorBase(isPostDom), Nodes(), DFSInfoValid(false), SlowQueries(0) {} @@ -491,7 +496,8 @@ /// ETForest Class - Concrete subclass of ETForestBase that is used to /// compute a forwards ET-Forest. -struct ETForest : public ETForestBase { +class ETForest : public ETForestBase { +public: ETForest() : ETForestBase(false) {} BasicBlock *getRoot() const { @@ -515,7 +521,8 @@ /// DominatorTree Class - Concrete subclass of DominatorTreeBase that is used to /// compute a normal dominator tree. /// -struct DominatorTree : public DominatorTreeBase { +class DominatorTree : public DominatorTreeBase { +public: DominatorTree() : DominatorTreeBase(false) {} BasicBlock *getRoot() const { @@ -569,7 +576,8 @@ //===----------------------------------------------------------------------===// /// DominanceFrontier - Calculate the dominance frontiers for a function. /// -struct DominanceFrontierBase : public DominatorBase { +class DominanceFrontierBase : public DominatorBase { +public: typedef std::set<BasicBlock*> DomSetType; // Dom set for a bb typedef std::map<BasicBlock*, DomSetType> DomSetMapType; // Dom set map protected: @@ -615,7 +623,8 @@ /// DominatorTree Class - Concrete subclass of DominatorTreeBase that is used to /// compute a normal dominator tree. /// -struct DominanceFrontier : public DominanceFrontierBase { +class DominanceFrontier : public DominanceFrontierBase { +public: DominanceFrontier() : DominanceFrontierBase(false) {} BasicBlock *getRoot() const { _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits