From f5ab7a4dbb3061b17b6cc010e6b5fa802e913a52 Mon Sep 17 00:00:00 2001 From: James Molloy Date: Fri, 28 Aug 2015 14:40:29 +0000 Subject: [PATCH] [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 --- include/llvm/Transforms/Utils/LoopUtils.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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. -- 2.11.0