[llvm-commits] [llvm-gcc-4.2] r97751 - /llvm-gcc-4.2/trunk/gcc/llvm-types.cpp

Stuart Hastings stuart at apple.com
Thu Mar 4 13:27:58 PST 2010


Author: stuart
Date: Thu Mar  4 15:27:58 2010
New Revision: 97751

URL: http://llvm.org/viewvc/llvm-project?rev=97751&view=rev
Log:
Revise comments, use pre-increment for conformity.

Modified:
    llvm-gcc-4.2/trunk/gcc/llvm-types.cpp

Modified: llvm-gcc-4.2/trunk/gcc/llvm-types.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-types.cpp?rev=97751&r1=97750&r2=97751&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-types.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-types.cpp Thu Mar  4 15:27:58 2010
@@ -496,10 +496,10 @@
   outs().flush();
 }
 
-// We've just read in a PCH; retrieve the set of GCC types that were
-// known to TypeUsers[], and re-populate it.  Intended to be called
-// once, but harmless if called multiple times, or if no PCH is
-// present.
+/// readLLVMTypeUsers - We've just read in a PCH; retrieve the set of
+/// GCC types that were known to TypeUsers[], and re-populate it.
+/// Intended to be called once, but harmless if called multiple times,
+/// or if no PCH is present.
 void readLLVMTypeUsers() {
   tree ty;
   while ((ty = llvm_pop_TypeUsers())) {
@@ -510,17 +510,18 @@
   }
 }
 
-// Record the set of GCC types currently known to TypeUsers[] inside
-// GCC so they will be preserved in a PCH.  Intended to be called
-// once, just before the PCH is written.
+/// writeLLVMTypeUSers - Record the set of GCC types currently known
+/// to TypeUsers[] inside GCC so they will be preserved in a PCH.
+/// Intended to be called once, just before the PCH is written.
 void writeLLVMTypeUsers() {
   std::map<const Type*, std::vector<tree> >::iterator
     I = TypeDB.TypeUsers.begin(),
     E = TypeDB.TypeUsers.end();
-  for (; I != E; I++)
+  for (; I != E; ++I)
     for (unsigned i = 0, e = I->second.size(); i != e; ++i)
       llvm_push_TypeUsers(I->second[i]);
 }
+
 //===----------------------------------------------------------------------===//
 //                              Helper Routines
 //===----------------------------------------------------------------------===//





More information about the llvm-commits mailing list