diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-10-16 18:18:30 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-10-16 18:18:30 +0000 |
commit | d2eb58abac2d25b188628e825eab75077eb7aac8 (patch) | |
tree | 55f7b6d575dc540e4eee6f3e36972885ea89db9d /clang/lib/Frontend/GeneratePCH.cpp | |
parent | d0099a94dbf2e2a14b654d8c333a03b9c8ec8fca (diff) | |
download | bcm5719-llvm-d2eb58abac2d25b188628e825eab75077eb7aac8.tar.gz bcm5719-llvm-d2eb58abac2d25b188628e825eab75077eb7aac8.zip |
Add support for a chain of stat caches in the FileManager, rather than
only supporting a single stat cache. The immediate benefit of this
change is that we can now generate a PCH/AST file when including
another PCH file; in the future, the chain of stat caches will likely
be useful with multiple levels of PCH files.
llvm-svn: 84263
Diffstat (limited to 'clang/lib/Frontend/GeneratePCH.cpp')
-rw-r--r-- | clang/lib/Frontend/GeneratePCH.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/GeneratePCH.cpp b/clang/lib/Frontend/GeneratePCH.cpp index bc45cc42258..0e4f83ff09f 100644 --- a/clang/lib/Frontend/GeneratePCH.cpp +++ b/clang/lib/Frontend/GeneratePCH.cpp @@ -53,7 +53,7 @@ PCHGenerator::PCHGenerator(const Preprocessor &PP, // Install a stat() listener to keep track of all of the stat() // calls. StatCalls = new MemorizeStatCalls; - PP.getFileManager().setStatCache(StatCalls); + PP.getFileManager().addStatCache(StatCalls, /*AtBeginning=*/true); } void PCHGenerator::HandleTranslationUnit(ASTContext &Ctx) { |