Files
clang-p2996/lldb/lit/SymbolFile/PDB/Inputs/CallingConventionsTest.cpp
Aleksandr Urakov bc4707cc17 [PDB] Restore the calling convention from PDB
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
2018-09-26 09:03:34 +00:00

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;
}