diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-27 19:01:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-27 19:01:47 +0000 |
commit | 090d9b53e32bb30d9e74de895bb59b409bd49e00 (patch) | |
tree | ca5f677922e2bb56985fb6ebf293dfb9700158bd /lib/Frontend/PCHWriter.cpp | |
parent | ce5148894cbf4a465e2bc1158e8a4f8a729f6632 (diff) |
shrink SOURCE_LOCATION_OFFSETS to use 4-byte entries instead of 8-byte
entries, shaving 100K off the PCH file for cocoa.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70228 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PCHWriter.cpp')
-rw-r--r-- | lib/Frontend/PCHWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Frontend/PCHWriter.cpp b/lib/Frontend/PCHWriter.cpp index f0dd43ae8a..d8603dfb69 100644 --- a/lib/Frontend/PCHWriter.cpp +++ b/lib/Frontend/PCHWriter.cpp @@ -738,7 +738,7 @@ void PCHWriter::WriteSourceManagerBlock(SourceManager &SourceMgr, // Write out the source location entry table. We skip the first // entry, which is always the same dummy entry. - std::vector<uint64_t> SLocEntryOffsets; + std::vector<uint32_t> SLocEntryOffsets; RecordData PreloadSLocs; SLocEntryOffsets.reserve(SourceMgr.sloc_entry_size() - 1); for (SourceManager::sloc_entry_iterator @@ -836,7 +836,7 @@ void PCHWriter::WriteSourceManagerBlock(SourceManager &SourceMgr, Record.push_back(SourceMgr.getNextOffset()); Stream.EmitRecordWithBlob(SLocOffsetsAbbrev, Record, (const char *)&SLocEntryOffsets.front(), - SLocEntryOffsets.size() * 8); + SLocEntryOffsets.size()*sizeof(SLocEntryOffsets[0])); // Write the source location entry preloads array, telling the PCH // reader which source locations entries it should load eagerly. |