[PATCH] D27836: Store the "current position" index within the ASTRecordReader.

David L. Jones via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 15 17:22:10 PST 2016


dlj created this revision.
dlj added a reviewer: rsmith.
dlj added a subscriber: cfe-commits.

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.


https://reviews.llvm.org/D27836

Files:
  include/clang/Serialization/ASTReader.h
  lib/Serialization/ASTReader.cpp
  lib/Serialization/ASTReaderDecl.cpp
  lib/Serialization/ASTReaderStmt.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27836.81694.patch
Type: text/x-patch
Size: 155426 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161216/138d4991/attachment-0001.bin>


More information about the cfe-commits mailing list