diff options
| author | John McCall <rjmccall@apple.com> | 2013-06-27 22:43:24 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2013-06-27 22:43:24 +0000 |
| commit | 02a01faadb2771f4ca5174ed3e798bec0afb96c4 (patch) | |
| tree | b4eb06240d9fe74b344b7f34aa1eb97b95855426 /lib/CodeGen/CGExpr.cpp | |
| parent | 267fad813b763a68947a1c2fbc469a7ff82c141a (diff) | |
| download | clang-02a01faadb2771f4ca5174ed3e798bec0afb96c4.tar.gz clang-02a01faadb2771f4ca5174ed3e798bec0afb96c4.tar.bz2 clang-02a01faadb2771f4ca5174ed3e798bec0afb96c4.tar.xz | |
Ensure that debugger calls to signature-less functions default to
passing arguments in the fixed style.
We have an abstraction for deciding this, but it's (1) deep in
IR-generation, (2) necessarily tied to exact argument lists, and
(3) triggered by unprototyped function types, which we can't
legitimately make in C++ mode. So this solution, wherein Sema
rewrites the function type to an exact prototype but leaves the
variadic bit enabled so as to request x86-64-like platforms to
pass the extra variadic info, is very much a hack, but it's one
that works in practice on the platforms that LLDB will support
in the medium term --- the only place we know of where it's a
problem is instance methods in Windows, where variadic functions
are implicitly cdecl. We may have a more abstracted base on which
to build a solution by then.
rdar://13731520
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185112 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions
