From: James Molloy Date: Fri, 28 Aug 2015 14:40:29 +0000 (+0000) Subject: [LoopUtils] Move a private constructor nearer the other private members X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f5ab7a4dbb3061b17b6cc010e6b5fa802e913a52;p=oota-llvm.git [LoopUtils] Move a private constructor nearer the other private members This was part of Adam Nemet's review feedback that I forgot to implement. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246301 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Transforms/Utils/LoopUtils.h b/include/llvm/Transforms/Utils/LoopUtils.h index 6005a200172..77f7134268b 100644 --- a/include/llvm/Transforms/Utils/LoopUtils.h +++ b/include/llvm/Transforms/Utils/LoopUtils.h @@ -255,9 +255,6 @@ public: IK_PtrInduction ///< Pointer induction var. Step = C / sizeof(elem). }; -private: - /// Private constructor - use \c isInductionPHI. - InductionDescriptor(Value *Start, InductionKind K, ConstantInt *Step); public: /// Default constructor - creates an invalid induction. InductionDescriptor() @@ -285,6 +282,9 @@ public: InductionDescriptor &D); private: + /// Private constructor - used by \c isInductionPHI. + InductionDescriptor(Value *Start, InductionKind K, ConstantInt *Step); + /// Start value. TrackingVH StartValue; /// Induction kind.