[PATCH] D27784: Add a class ASTRecordReader which wraps an ASTReader, a RecordData, and ModuleFile.
David L. Jones via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 14 16:07:57 PST 2016
dlj created this revision.
dlj added a reviewer: rsmith.
dlj added a subscriber: cfe-commits.
When reading an ASTRecord, each RecordData is logically contained within a
single ModuleFile, and global(er) state is contained by a single ASTReader. This
means that any operations that read from a RecordData and reference an ASTReader
or a ModuleFile, will always reference the same ASTReader or ModuleFile.
ASTRecordReader groups these together so that parameters don't need to be
duplicated ad infinitum. Most uses of the Idx variable seem to be redunant
aliases as well, but I'll leave that for now.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 210882 bytes
Desc: not available
More information about the cfe-commits