aboutsummaryrefslogtreecommitdiff
path: root/Driver/CacheTokens.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-03 07:30:45 +0000
committerChris Lattner <sabre@nondot.org>2009-02-03 07:30:45 +0000
commit0d0bf8cf58b35302312cc155287fde3e81eb25a7 (patch)
treef4cd780c4088fdca1bc6e0ab569410b5c22f6c40 /Driver/CacheTokens.cpp
parentec9f2bba40687771c027f6a126ba99685b4ecb2f (diff)
switch SourceManager from using an std::map and std::list of
ContentCache objects to using a densemap and list, and allocating the ContentCache objects from a bump pointer. This does not speed up or slow down things substantially, but gives us control over their alignment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63628 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/CacheTokens.cpp')
-rw-r--r--Driver/CacheTokens.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Driver/CacheTokens.cpp b/Driver/CacheTokens.cpp
index c64797ec38..51f5027243 100644
--- a/Driver/CacheTokens.cpp
+++ b/Driver/CacheTokens.cpp
@@ -433,7 +433,7 @@ void PTHWriter::GeneratePTH() {
for (SourceManager::fileinfo_iterator I = SM.fileinfo_begin(),
E = SM.fileinfo_end(); I != E; ++I) {
- const SrcMgr::ContentCache &C = *I;
+ const SrcMgr::ContentCache &C = *I->second;
const FileEntry *FE = C.Entry;
// FIXME: Handle files with non-absolute paths.