[cfe-commits] [PATCH] Removing ASTBuffers from the ASTReader

Douglas Gregor dgregor at apple.com
Tue Aug 2 10:24:17 PDT 2011


On Aug 1, 2011, at 2:41 PM, Jonathan Turner wrote:

> In this patch I follow up the earlier refactoring/cleanup work by fixing up how we handle 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, this happens if the 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.  

Looks good to me!

	- Doug



More information about the cfe-commits mailing list