[PATCH] D58757: Add a version of the pass_object_size attribute that works with builtin_dynamic_object_size
Erik Pilkington via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 27 20:24:06 PST 2019
erik.pilkington created this revision.
erik.pilkington added reviewers: aaron.ballman, george.burgess.iv, rsmith.
Herald added subscribers: jdoerfert, kristina, dexonsmith, jkorous.
Herald added a project: clang.
This attribute, named `pass_dynamic_object_size` has the same semantics as pass_object_size, except that it calls `__builtin_dynamic_object_size` at the caller instead of `__builtin_object_size`. You can read more about `__builtin_dynamic_object_size` here: https://clang.llvm.org/docs/LanguageExtensions.html#evaluating-object-size-dynamically, it was introduced in D56760 <https://reviews.llvm.org/D56760>.
rdar://48208787
Thanks for taking a look!
Erik
Repository:
rC Clang
https://reviews.llvm.org/D58757
Files:
clang/include/clang/AST/Attr.h
clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/AttrDocs.td
clang/lib/AST/ItaniumMangle.cpp
clang/lib/AST/MicrosoftMangle.cpp
clang/lib/CodeGen/CGBuiltin.cpp
clang/lib/CodeGen/CGCall.cpp
clang/lib/CodeGen/CGClass.cpp
clang/lib/CodeGen/CGExpr.cpp
clang/lib/CodeGen/CodeGenFunction.cpp
clang/lib/Sema/SemaChecking.cpp
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaDeclAttr.cpp
clang/lib/Sema/SemaLambda.cpp
clang/lib/Sema/SemaOverload.cpp
clang/lib/Sema/SemaType.cpp
clang/test/CodeGen/pass-object-size.c
clang/test/CodeGenCXX/mangle-ms.cpp
clang/test/Misc/pragma-attribute-supported-attributes-list.test
clang/test/Sema/pass-object-size.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58757.188666.patch
Type: text/x-patch
Size: 27200 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190228/6985b31f/attachment-0001.bin>
More information about the cfe-commits
mailing list