diff options
author | Bruno Ricci <riccibrun@gmail.com> | 2019-01-07 15:04:45 +0000 |
---|---|---|
committer | Bruno Ricci <riccibrun@gmail.com> | 2019-01-07 15:04:45 +0000 |
commit | 9b6dfac5ad6a80766234203c23d26b5cff15711b (patch) | |
tree | ecf44d7d9a7b85da5ca3bb329ba208bf5ae75f0b /lldb/packages/Python/lldbsuite/test/python_api/breakpoint/TestBreakpointAPI.py | |
parent | 1bec67f605c067e70a6df52479e899d1cbe6d47a (diff) | |
download | bcm5719-llvm-9b6dfac5ad6a80766234203c23d26b5cff15711b.tar.gz bcm5719-llvm-9b6dfac5ad6a80766234203c23d26b5cff15711b.zip |
[AST] Store some data of CXXNewExpr as trailing objects
Store the optional array size expression, optional initialization expression
and optional placement new arguments in a trailing array. Additionally store
the range for the parenthesized type-id in a trailing object if needed since
in the vast majority of cases the type is not parenthesized (not a single new
expression in the translation unit of SemaDecl.cpp has a parenthesized type-id).
This saves 2 pointers per CXXNewExpr in all cases, and 2 pointers + 8 bytes
per CXXNewExpr in the common case where the type is not parenthesized.
Differential Revision: https://reviews.llvm.org/D56134
Reviewed By: rjmccall
llvm-svn: 350527
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/breakpoint/TestBreakpointAPI.py')
0 files changed, 0 insertions, 0 deletions