]> granicus.if.org Git - clang/commitdiff
Rename TypeIDs -> TypeIdxs. No functionality change.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 20 Aug 2010 16:04:04 +0000 (16:04 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 20 Aug 2010 16:04:04 +0000 (16:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111631 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Serialization/ASTWriter.h
lib/Serialization/ASTWriter.cpp

index 0776c69714dabe9104636e9707b09d2fd4392c90..c03ad6c0f45fd327c292f0314b300033c2a45931 100644 (file)
@@ -147,7 +147,7 @@ private:
   ///
   /// 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.
index 30a5d16e9eab3d76c0179b57afe4941416c00f63..b421b857b414a0561e8d155419ac59b886927fc9 100644 (file)
@@ -1397,7 +1397,7 @@ void ASTWriter::WritePreprocessor(const Preprocessor &PP) {
 
 /// \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 @@ void ASTWriter::AddTypeRef(QualType T, RecordData &Record) {
   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 @@ void ASTWriter::AddTypeRef(QualType T, RecordData &Record) {
     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::IdentifierRead(IdentID ID, IdentifierInfo *II) {
 }
 
 void ASTWriter::TypeRead(TypeIdx Idx, QualType T) {
-  TypeIDs[T] = Idx;
+  TypeIdxs[T] = Idx;
 }
 
 void ASTWriter::DeclRead(DeclID ID, const Decl *D) {