aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp
diff options
context:
space:
mode:
authorDavid L. Jones <dlj@google.com>2016-12-15 20:53:26 +0000
committerDavid L. Jones <dlj@google.com>2016-12-15 20:53:26 +0000
commitc4808b9e0ada45aaef7f103f50a714c79f4ff2d5 (patch)
tree76dda0821fd06bdf2298ee0c8f485eaaee075344 /llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp
parent1aa3ef9268d9a0e2133961bec6ad0a53bd2cf445 (diff)
downloadllvm-c4808b9e0ada45aaef7f103f50a714c79f4ff2d5.zip
llvm-c4808b9e0ada45aaef7f103f50a714c79f4ff2d5.tar.gz
llvm-c4808b9e0ada45aaef7f103f50a714c79f4ff2d5.tar.bz2
Add a class ASTRecordReader which wraps an ASTReader, a RecordData, and ModuleFile.
Summary: 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. Reviewers: rsmith Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D27784 llvm-svn: 289870
Diffstat (limited to 'llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp')
0 files changed, 0 insertions, 0 deletions