diff options
author | Chris Lattner <sabre@nondot.org> | 2004-10-27 16:14:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-10-27 16:14:51 +0000 |
commit | 1fca5ff62bb2ecb5bfc8974f4dbfc56e9d3ca721 (patch) | |
tree | 84ba84e29d790774dd87ad9efc8acb702dafc842 /include/llvm/Analysis | |
parent | 3acd9181df5d8f76f75a384266e2a78b9a6c4f45 (diff) | |
download | external_llvm-1fca5ff62bb2ecb5bfc8974f4dbfc56e9d3ca721.zip external_llvm-1fca5ff62bb2ecb5bfc8974f4dbfc56e9d3ca721.tar.gz external_llvm-1fca5ff62bb2ecb5bfc8974f4dbfc56e9d3ca721.tar.bz2 |
Convert 'struct' to 'class' in various places to adhere to the coding standards
and work better with VC++. Patch contributed by Morten Ofstad!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17281 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis')
-rw-r--r-- | include/llvm/Analysis/AliasSetTracker.h | 4 | ||||
-rw-r--r-- | include/llvm/Analysis/DataStructure/DSNode.h | 2 | ||||
-rw-r--r-- | include/llvm/Analysis/Dominators.h | 6 | ||||
-rw-r--r-- | include/llvm/Analysis/LoopInfo.h | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/include/llvm/Analysis/AliasSetTracker.h b/include/llvm/Analysis/AliasSetTracker.h index fe3e60c..91c822b 100644 --- a/include/llvm/Analysis/AliasSetTracker.h +++ b/include/llvm/Analysis/AliasSetTracker.h @@ -34,7 +34,7 @@ class AliasSet; class AliasSet { friend class AliasSetTracker; - struct PointerRec; + class PointerRec; typedef std::pair<Value* const, PointerRec> HashNodePair; class PointerRec { @@ -116,7 +116,7 @@ class AliasSet { // Volatile - True if this alias set contains volatile loads or stores. bool Volatile : 1; - friend class ilist_traits<AliasSet>; + friend struct ilist_traits<AliasSet>; AliasSet *getPrev() const { return Prev; } AliasSet *getNext() const { return Next; } void setPrev(AliasSet *P) { Prev = P; } diff --git a/include/llvm/Analysis/DataStructure/DSNode.h b/include/llvm/Analysis/DataStructure/DSNode.h index 27ae67e..3cdc0a6 100644 --- a/include/llvm/Analysis/DataStructure/DSNode.h +++ b/include/llvm/Analysis/DataStructure/DSNode.h @@ -47,7 +47,7 @@ class DSNode { /// doubly-linked ilist in the DSGraph. /// DSNode *Next, *Prev; - friend class ilist_traits<DSNode>; + friend struct ilist_traits<DSNode>; /// Size - The current size of the node. This should be equal to the size of /// the current type record. diff --git a/include/llvm/Analysis/Dominators.h b/include/llvm/Analysis/Dominators.h index 11d4b98..c1cdae5 100644 --- a/include/llvm/Analysis/Dominators.h +++ b/include/llvm/Analysis/Dominators.h @@ -287,9 +287,9 @@ protected: Node *RootNode; public: class Node { - friend class DominatorTree; - friend class PostDominatorTree; - friend class DominatorTreeBase; + friend struct DominatorTree; + friend struct PostDominatorTree; + friend struct DominatorTreeBase; BasicBlock *TheBB; Node *IDom; std::vector<Node*> Children; diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h index c5eec83..32351ea 100644 --- a/include/llvm/Analysis/LoopInfo.h +++ b/include/llvm/Analysis/LoopInfo.h @@ -35,7 +35,7 @@ namespace llvm { -class DominatorSet; +struct DominatorSet; class LoopInfo; class PHINode; class Instruction; |