]> granicus.if.org Git - clang/commitdiff
Rename the AST file's SOURCE_LOCATION_MAP to MODULE_OFFSET_MAP, to indicate the great...
authorDouglas Gregor <dgregor@apple.com>
Mon, 1 Aug 2011 16:01:55 +0000 (16:01 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 1 Aug 2011 16:01:55 +0000 (16:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136619 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 908aa4b070855b01f95ce3139b27a89e500c1bef..97b4cfc02831dbb14a6abcb88b2f1ec7a0b8bc56 100644 (file)
@@ -387,8 +387,11 @@ namespace clang {
       /// for typo correction.
       KNOWN_NAMESPACES = 46,
 
-      /// \brief Record code for the source location remapping information.
-      SOURCE_LOCATION_MAP = 47,
+      /// \brief Record code for the remapping information used to relate
+      /// loaded modules to the various offsets and IDs(e.g., source location 
+      /// offests, declaration and type IDs) that are used in that module to
+      /// refer to other modules.
+      MODULE_OFFSET_MAP = 47,
 
       /// \brief Record code for the source manager line table information,
       /// which stores information about #line directives.
index d8f6c6a640b0e84443223230f94be8ad178a3ec0..6521e7c3bd88ae5d9b67fb2acb98d3943fd813f1 100644 (file)
@@ -2271,7 +2271,7 @@ ASTReader::ReadASTBlock(Module &F) {
       break;
     }
 
-    case SOURCE_LOCATION_MAP: {
+    case MODULE_OFFSET_MAP: {
       // Additional remapping information.
       const unsigned char *Data = (const unsigned char*)BlobStart;
       const unsigned char *DataEnd = Data + BlobLen;
index e506bba8a2566cce2f4f94d9b4a4ef22b251df1d..649b05e21d5422185f49cb609c631af73c3a2666 100644 (file)
@@ -1582,7 +1582,7 @@ void ASTWriter::WriteSourceManagerBlock(SourceManager &SourceMgr,
     Chain->ModuleMgr.exportLookup(Modules);
 
     Abbrev = new BitCodeAbbrev();
-    Abbrev->Add(BitCodeAbbrevOp(SOURCE_LOCATION_MAP));
+    Abbrev->Add(BitCodeAbbrevOp(MODULE_OFFSET_MAP));
     Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Blob));
     unsigned SLocMapAbbrev = Stream.EmitAbbrev(Abbrev);
     llvm::SmallString<2048> Buffer;
@@ -1597,7 +1597,7 @@ void ASTWriter::WriteSourceManagerBlock(SourceManager &SourceMgr,
       }
     }
     Record.clear();
-    Record.push_back(SOURCE_LOCATION_MAP);
+    Record.push_back(MODULE_OFFSET_MAP);
     Stream.EmitRecordWithBlob(SLocMapAbbrev, Record,
                               Buffer.data(), Buffer.size());
   }