]> granicus.if.org Git - clang/commit
Following up the earlier refactoring/cleanup work by fixing up how we manage the...
authorJonathan D. Turner <jonathan.d.turner@gmail.com>
Tue, 2 Aug 2011 17:40:32 +0000 (17:40 +0000)
committerJonathan D. Turner <jonathan.d.turner@gmail.com>
Tue, 2 Aug 2011 17:40:32 +0000 (17:40 +0000)
commitc24a1eef40207457692a1ad597cefdd0dc8fa149
tree2743dbf864bc6ab6dd2017e1e0995a806aef163d
parente68b5f1fa73f8404c5d6859a3d8a139fb1da7bbb
Following up the earlier refactoring/cleanup work by fixing up how we manage the virtual files the ASTReader has to handle.  Specifically, this occurs when the reader is reading AST files that were created in memory and not written to disk.  For example, when a user creates a chained PCH using command line flags.  These virtual files are stored in MemoryBuffers in ChainIncludeSource.cpp, and then read back in by the ASTReader.  This patch moves the management of these buffers into the ModuleManager, so that it becomes the authority on where these buffers are located.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136697 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Serialization/ASTReader.h
lib/Serialization/ASTReader.cpp
lib/Serialization/ChainedIncludesSource.cpp