Store the "current position" index within the ASTRecordReader.
Summary: For ASTDeclReader and ASTStmtReader, every parameter "unsigned &Idx" ultimately comes from a variable that is defined on the stack, next to the RecordData. This change moves that index into the ASTRecordReader. TypeLocReader cannot be transitioned, due to TableGen-generated code which calls ASTReader::GetTypeSourceInfo. Reviewers: rsmith Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D27836 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290217 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Serialization/ASTReader.h 98 additions, 89 deletionsinclude/clang/Serialization/ASTReader.h
- lib/Serialization/ASTReader.cpp 50 additions, 31 deletionslib/Serialization/ASTReader.cpp
- lib/Serialization/ASTReaderDecl.cpp 326 additions, 334 deletionslib/Serialization/ASTReaderDecl.cpp
- lib/Serialization/ASTReaderStmt.cpp 347 additions, 350 deletionslib/Serialization/ASTReaderStmt.cpp
Loading
Please register or sign in to comment