summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-08-01 16:01:55 +0000
committerDouglas Gregor <dgregor@apple.com>2011-08-01 16:01:55 +0000
commit5a1797c67b3efc8294f094358c275a62390ebcf4 (patch)
treea8d067f5f95fdc0156b24438b9b6e9ad3693e4b1 /clang
parent6b31963d6cff579f9662542686cded40bc5cdbc0 (diff)
downloadbcm5719-llvm-5a1797c67b3efc8294f094358c275a62390ebcf4.tar.gz
bcm5719-llvm-5a1797c67b3efc8294f094358c275a62390ebcf4.zip
Rename the AST file's SOURCE_LOCATION_MAP to MODULE_OFFSET_MAP, to indicate the greater role it will soon play in remapping.
llvm-svn: 136619
Diffstat (limited to 'clang')
-rw-r--r--clang/include/clang/Serialization/ASTBitCodes.h7
-rw-r--r--clang/lib/Serialization/ASTReader.cpp2
-rw-r--r--clang/lib/Serialization/ASTWriter.cpp4
3 files changed, 8 insertions, 5 deletions
diff --git a/clang/include/clang/Serialization/ASTBitCodes.h b/clang/include/clang/Serialization/ASTBitCodes.h
index 908aa4b0708..97b4cfc0283 100644
--- a/clang/include/clang/Serialization/ASTBitCodes.h
+++ b/clang/include/clang/Serialization/ASTBitCodes.h
@@ -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.
diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp
index d8f6c6a640b..6521e7c3bd8 100644
--- a/clang/lib/Serialization/ASTReader.cpp
+++ b/clang/lib/Serialization/ASTReader.cpp
@@ -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;
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp
index e506bba8a25..649b05e21d5 100644
--- a/clang/lib/Serialization/ASTWriter.cpp
+++ b/clang/lib/Serialization/ASTWriter.cpp
@@ -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());
}
OpenPOWER on IntegriCloud