OSDN Git Service

[clang] Add an API to retrieve implicit constructor arguments.
authorMartin Böhme <mboehme@google.com>
Tue, 19 May 2020 06:43:46 +0000 (08:43 +0200)
committerDmitri Gribenko <gribozavr@gmail.com>
Tue, 19 May 2020 07:21:26 +0000 (09:21 +0200)
commit4c09289f635c4291c41fe4396afba4ba839d265b
treec71d419c25b683b4665bbfccf350b05969aa689f
parent61f859785f6ff3d4c74436570d246da8bbec8664
[clang] Add an API to retrieve implicit constructor arguments.

Summary:
This is needed in Swift for C++ interop -- see here for the corresponding Swift change:

https://github.com/apple/swift/pull/30630

As part of this change, I've had to make some changes to the interface of CGCXXABI to return the additional parameters separately rather than adding them directly to a `CallArgList`.

Reviewers: rjmccall

Reviewed By: rjmccall

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D79942
clang/include/clang/CodeGen/CodeGenABITypes.h
clang/lib/CodeGen/CGCXXABI.cpp
clang/lib/CodeGen/CGCXXABI.h
clang/lib/CodeGen/CGCall.cpp
clang/lib/CodeGen/CGClass.cpp
clang/lib/CodeGen/CodeGenABITypes.cpp
clang/lib/CodeGen/ItaniumCXXABI.cpp
clang/lib/CodeGen/MicrosoftCXXABI.cpp