From: Argyrios Kyrtzidis Date: Fri, 20 Aug 2010 16:04:04 +0000 (+0000) Subject: Rename TypeIDs -> TypeIdxs. No functionality change. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=01b81c4d074bba9c18372d521405dfe32fc4f552;p=clang Rename TypeIDs -> TypeIdxs. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111631 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Serialization/ASTWriter.h b/include/clang/Serialization/ASTWriter.h index 0776c69714..c03ad6c0f4 100644 --- a/include/clang/Serialization/ASTWriter.h +++ b/include/clang/Serialization/ASTWriter.h @@ -147,7 +147,7 @@ private: /// /// Keys in the map never have const/volatile qualifiers. llvm::DenseMap - TypeIDs; + TypeIdxs; /// \brief Offset of each type in the bitstream, indexed by /// the type's ID. diff --git a/lib/Serialization/ASTWriter.cpp b/lib/Serialization/ASTWriter.cpp index 30a5d16e9e..b421b857b4 100644 --- a/lib/Serialization/ASTWriter.cpp +++ b/lib/Serialization/ASTWriter.cpp @@ -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) {