[llvm] r246301 - [LoopUtils] Move a private constructor nearer the other private members

James Molloy via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 28 07:40:30 PDT 2015


Author: jamesm
Date: Fri Aug 28 09:40:29 2015
New Revision: 246301

URL: http://llvm.org/viewvc/llvm-project?rev=246301&view=rev
Log:
[LoopUtils] Move a private constructor nearer the other private members

This was part of Adam Nemet's review feedback that I forgot to implement.

Modified:
    llvm/trunk/include/llvm/Transforms/Utils/LoopUtils.h

Modified: llvm/trunk/include/llvm/Transforms/Utils/LoopUtils.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/Utils/LoopUtils.h?rev=246301&r1=246300&r2=246301&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/Utils/LoopUtils.h (original)
+++ llvm/trunk/include/llvm/Transforms/Utils/LoopUtils.h Fri Aug 28 09:40:29 2015
@@ -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.




More information about the llvm-commits mailing list