From 0118b8d86d46322c500e795df301fe99cc8725df Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 14 Apr 2010 15:33:04 +0000 Subject: [PATCH] Make helper utility members private. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101243 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/CFG.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/llvm/Support/CFG.h b/include/llvm/Support/CFG.h index 57699c70889..717802f6dbf 100644 --- a/include/llvm/Support/CFG.h +++ b/include/llvm/Support/CFG.h @@ -29,10 +29,8 @@ template // Predecessor Iterator class PredIterator : public std::iterator { typedef std::iterator super; - _USE_iterator It; -public: typedef PredIterator<_Ptr,_USE_iterator> _Self; - typedef typename super::pointer pointer; + _USE_iterator It; inline void advancePastNonTerminators() { // Loop to ignore non terminator uses (for example PHI nodes)... @@ -40,6 +38,9 @@ public: ++It; } +public: + typedef typename super::pointer pointer; + inline PredIterator(_Ptr *bb) : It(bb->use_begin()) { advancePastNonTerminators(); } -- 2.34.1