[PATCH] D53715: [AST] Only store the needed data in WhileStmt.

Bruno Ricci via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 25 10:10:25 PDT 2018


riccibruno created this revision.
riccibruno added a reviewer: rjmccall.
riccibruno added a project: clang.
Herald added a subscriber: cfe-commits.

Don't store the data for the condition variable if not needed.
This cuts the size of `WhileStmt` by up to a pointer.
The order of the children is kept the same.


Repository:
  rC Clang

https://reviews.llvm.org/D53715

Files:
  include/clang/AST/Stmt.h
  lib/AST/ASTImporter.cpp
  lib/AST/Stmt.cpp
  lib/Sema/SemaStmt.cpp
  lib/Serialization/ASTReaderStmt.cpp
  lib/Serialization/ASTWriterStmt.cpp
  test/Import/while-stmt/test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53715.171129.patch
Type: text/x-patch
Size: 11360 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181025/f1e29a38/attachment-0001.bin>


More information about the cfe-commits mailing list