[PATCH] D119209: Implement -mctor_dtor_return_this ABI option.
Shu-Chun Weng via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 7 18:39:04 PST 2022
scw created this revision.
Herald added subscribers: dexonsmith, dang, kristof.beyls.
scw requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This option forces constructors and non-deleting destructors to
return `this` pointer.
This is similar to ARM32, Apple ARM64, or Fuchsia C++ ABI, but can be
applied to any target triple.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D119209
Files:
clang/include/clang/Basic/CodeGenOptions.def
clang/include/clang/Driver/Options.td
clang/lib/CodeGen/CGCXXABI.h
clang/lib/CodeGen/ItaniumCXXABI.cpp
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/CodeGenCXX/constructor-destructor-return-this.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119209.406673.patch
Type: text/x-patch
Size: 13354 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220208/233f81fe/attachment-0001.bin>
More information about the cfe-commits
mailing list