]> granicus.if.org Git - clang/commit
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)
commit773786df292c364357db2e9225092d272a9daf55
tree7bceb2874e79ec255e6c76f21c7273caf6cdb406
parentc650f177cbd0a923d01c3d00b4899b605f8f6ec3
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
include/clang/Serialization/ASTReader.h
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTReaderDecl.cpp
lib/Serialization/ASTReaderStmt.cpp