Summary: This patch implements restoring of the calling convention from PDB. It is necessary for expressions evaluation, if we want to call a function of the debuggee process with a calling convention other than ccall. Reviewers: clayborg, zturner, labath, asmith Reviewed By: clayborg Subscribers: teemperor, lldb-commits, stella.stamenova Tags: #lldb Differential Revision: https://reviews.llvm.org/D52501 llvm-svn: 343084
21 lines
434 B
C++
21 lines
434 B
C++
int FuncCCall() { return 0; }
|
|
auto FuncCCallPtr = &FuncCCall;
|
|
|
|
int __stdcall FuncStdCall() { return 0; }
|
|
auto FuncStdCallPtr = &FuncStdCall;
|
|
|
|
int __fastcall FuncFastCall() { return 0; }
|
|
auto FuncFastCallPtr = &FuncFastCall;
|
|
|
|
int __vectorcall FuncVectorCall() { return 0; }
|
|
auto FuncVectorCallPtr = &FuncVectorCall;
|
|
|
|
struct S {
|
|
int FuncThisCall() { return 0; }
|
|
};
|
|
auto FuncThisCallPtr = &S::FuncThisCall;
|
|
|
|
int main() {
|
|
return 0;
|
|
}
|