Store the "current position" index within the ASTRecordReader.
authorDavid L. Jones <dlj@google.com>
Wed, 21 Dec 2016 00:17:49 +0000 (00:17 +0000)
committerDavid L. Jones <dlj@google.com>
Wed, 21 Dec 2016 00:17:49 +0000 (00:17 +0000)
commitbe1557ac32ff1a79cf1a8bdbeb9b963783c11299
tree6edbc94a089d715657ad81381bf50a7d5652b5fb
parentdf1e4b697e4bd91cf30130756d3d29fa64b8b6d2
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

llvm-svn: 290217
clang/include/clang/Serialization/ASTReader.h
clang/lib/Serialization/ASTReader.cpp
clang/lib/Serialization/ASTReaderDecl.cpp
clang/lib/Serialization/ASTReaderStmt.cpp