[llvm-commits] [llvm] r45857 - /llvm/trunk/include/llvm/Analysis/LoopInfo.h

Chris Lattner sabre at nondot.org
Thu Jan 10 22:29:43 PST 2008


Author: lattner
Date: Fri Jan 11 00:29:42 2008
New Revision: 45857

URL: http://llvm.org/viewvc/llvm-project?rev=45857&view=rev
Log:
Move typedef of loop to top of the file where it is more obvious.

Modified:
    llvm/trunk/include/llvm/Analysis/LoopInfo.h

Modified: llvm/trunk/include/llvm/Analysis/LoopInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/LoopInfo.h?rev=45857&r1=45856&r2=45857&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Analysis/LoopInfo.h (original)
+++ llvm/trunk/include/llvm/Analysis/LoopInfo.h Fri Jan 11 00:29:42 2008
@@ -57,6 +57,9 @@
 class PHINode;
 class Instruction;
 template<class N> class LoopInfoBase;
+template<class N> class LoopBase;
+
+typedef LoopBase<BasicBlock> Loop;
 
 //===----------------------------------------------------------------------===//
 /// LoopBase class - Instances of this class are used to represent loops that
@@ -552,8 +555,6 @@
   }
 };
 
-typedef LoopBase<BasicBlock> Loop;
-
 
 //===----------------------------------------------------------------------===//
 /// LoopInfo - This class builds and contains all of the top level loop





More information about the llvm-commits mailing list