[cfe-commits] r111631 - in /cfe/trunk: include/clang/Serialization/ASTWriter.h lib/Serialization/ASTWriter.cpp

Argyrios Kyrtzidis akyrtzi at gmail.com
Fri Aug 20 09:04:04 PDT 2010


Author: akirtzidis
Date: Fri Aug 20 11:04:04 2010
New Revision: 111631

URL: http://llvm.org/viewvc/llvm-project?rev=111631&view=rev
Log:
Rename TypeIDs -> TypeIdxs. No functionality change.

Modified:
    cfe/trunk/include/clang/Serialization/ASTWriter.h
    cfe/trunk/lib/Serialization/ASTWriter.cpp

Modified: cfe/trunk/include/clang/Serialization/ASTWriter.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Serialization/ASTWriter.h?rev=111631&r1=111630&r2=111631&view=diff
==============================================================================
--- cfe/trunk/include/clang/Serialization/ASTWriter.h (original)
+++ cfe/trunk/include/clang/Serialization/ASTWriter.h Fri Aug 20 11:04:04 2010
@@ -147,7 +147,7 @@
   ///
   /// Keys in the map never have const/volatile qualifiers.
   llvm::DenseMap<QualType, serialization::TypeIdx, UnsafeQualTypeDenseMapInfo>
-      TypeIDs;
+      TypeIdxs;
 
   /// \brief Offset of each type in the bitstream, indexed by
   /// the type's ID.

Modified: cfe/trunk/lib/Serialization/ASTWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTWriter.cpp?rev=111631&r1=111630&r2=111631&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTWriter.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTWriter.cpp Fri Aug 20 11:04:04 2010
@@ -1397,7 +1397,7 @@
 
 /// \brief Write the representation of a type to the AST stream.
 void ASTWriter::WriteType(QualType T) {
-  TypeIdx &Idx = TypeIDs[T];
+  TypeIdx &Idx = TypeIdxs[T];
   if (Idx.getIndex() == 0) // we haven't seen this type before.
     Idx = TypeIdx(NextTypeID++);
 
@@ -2588,7 +2588,7 @@
   T.removeFastQualifiers();
 
   if (T.hasLocalNonFastQualifiers()) {
-    TypeIdx &Idx = TypeIDs[T];
+    TypeIdx &Idx = TypeIdxs[T];
     if (Idx.getIndex() == 0) {
       // We haven't seen these qualifiers applied to this type before.
       // Assign it a new ID.  This is the only time we enqueue a
@@ -2644,7 +2644,7 @@
     return;
   }
 
-  TypeIdx &Idx = TypeIDs[T];
+  TypeIdx &Idx = TypeIdxs[T];
   if (Idx.getIndex() == 0) {
     // We haven't seen this type before. Assign it a new ID and put it
     // into the queue of types to emit.
@@ -2921,7 +2921,7 @@
 }
 
 void ASTWriter::TypeRead(TypeIdx Idx, QualType T) {
-  TypeIDs[T] = Idx;
+  TypeIdxs[T] = Idx;
 }
 
 void ASTWriter::DeclRead(DeclID ID, const Decl *D) {





More information about the cfe-commits mailing list