[LoopUtils] Move a private constructor nearer the other private members
authorJames Molloy <james.molloy@arm.com>
Fri, 28 Aug 2015 14:40:29 +0000 (14:40 +0000)
committerJames Molloy <james.molloy@arm.com>
Fri, 28 Aug 2015 14:40:29 +0000 (14:40 +0000)
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

index 6005a200172c61a5f7d03d96d994ae5ea1905a53..77f7134268b50874110df40beb5d3d4d40285bec 100644 (file)
@@ -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<Value> StartValue;
   /// Induction kind.