aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorElizabeth Andrews <elizabeth.andrews@intel.com>2021-03-18 02:58:35 -0700
committerElizabeth Andrews <elizabeth.andrews@intel.com>2021-03-18 04:26:47 -0700
commitd8b8f544d9de30cd14584094596090d3f9992345 (patch)
treec6817cfd90f9f2e6ec74fb97b4170243c82d5872 /flang/lib/Frontend/CompilerInvocation.cpp
parent388fbefb4f2aec19da221ebbc3e091919f7520a9 (diff)
downloadllvm-d8b8f544d9de30cd14584094596090d3f9992345.zip
llvm-d8b8f544d9de30cd14584094596090d3f9992345.tar.gz
llvm-d8b8f544d9de30cd14584094596090d3f9992345.tar.bz2
[Reland] "Do not apply calling conventions to MSVC entry points"
This patch is a second attempt at fixing a link error for MSVC entry points when calling conventions are specified using a flag. Calling conventions specified using flags should not be applied to MSVC entry points. The default calling convention is set in this case. The default calling convention for MSVC entry points main and wmain is cdecl. For WinMain, wWinMain and DllMain, the default calling convention is stdcall on 32 bit Windows. Explicitly specified calling conventions are applied to MSVC entry points. For MinGW, the default calling convention for all MSVC entry points is cdecl. First attempt: 4cff1b40dacf6 Revert of first attempt: bebfc3b92d5e8 Differential Revision: https://reviews.llvm.org/D97941
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions