summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHWriter.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-07-12 23:48:14 +0000
committerDouglas Gregor <dgregor@apple.com>2010-07-12 23:48:14 +0000
commit11cfd9441d6d82073c8dae67be4e27eaaad41a4d (patch)
treefa4763fd8f29e737a783e452409731832b0c549f /clang/lib/Frontend/PCHWriter.cpp
parent03264efe3038de3bc3bdf45235ef9b422d7d010c (diff)
downloadbcm5719-llvm-11cfd9441d6d82073c8dae67be4e27eaaad41a4d.tar.gz
bcm5719-llvm-11cfd9441d6d82073c8dae67be4e27eaaad41a4d.zip
Fix a documentation paste-o and eliminate a useless function parameter, both found by Sebastian
llvm-svn: 108214
Diffstat (limited to 'clang/lib/Frontend/PCHWriter.cpp')
-rw-r--r--clang/lib/Frontend/PCHWriter.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/Frontend/PCHWriter.cpp b/clang/lib/Frontend/PCHWriter.cpp
index 8d116a39938..e86399886c0 100644
--- a/clang/lib/Frontend/PCHWriter.cpp
+++ b/clang/lib/Frontend/PCHWriter.cpp
@@ -934,8 +934,7 @@ public:
} // end anonymous namespace
/// \brief Write the stat() system call cache to the PCH file.
-void PCHWriter::WriteStatCache(MemorizeStatCalls &StatCalls,
- const char *isysroot) {
+void PCHWriter::WriteStatCache(MemorizeStatCalls &StatCalls) {
// Build the on-disk hash table containing information about every
// stat() call.
OnDiskChainedHashTableGenerator<PCHStatCacheTrait> Generator;
@@ -944,7 +943,6 @@ void PCHWriter::WriteStatCache(MemorizeStatCalls &StatCalls,
StatEnd = StatCalls.end();
Stat != StatEnd; ++Stat, ++NumStatEntries) {
const char *Filename = Stat->first();
- Filename = adjustFilenameForRelocatablePCH(Filename, isysroot);
Generator.insert(Filename, Stat->second);
}
@@ -2169,7 +2167,7 @@ void PCHWriter::WritePCHCore(Sema &SemaRef, MemorizeStatCalls *StatCalls,
WriteMetadata(Context, 0, isysroot);
WriteLanguageOptions(Context.getLangOptions());
if (StatCalls && !isysroot)
- WriteStatCache(*StatCalls, isysroot);
+ WriteStatCache(*StatCalls);
WriteSourceManagerBlock(Context.getSourceManager(), PP, isysroot);
// Write the record of special types.
Record.clear();
OpenPOWER on IntegriCloud