[PATCH] [-cxx-abi microsoft] Correctly identify Win32 entry points
david.majnemer at gmail.com
Fri Sep 13 17:54:11 PDT 2013
Comment at: include/clang/AST/Decl.h:1740
@@ +1739,3 @@
+ /// point.
+ bool isMSVCRTEntryPoint() const;
Nico Rieck wrote:
> Mingw also knows about WinMain, and you can compile just fine with main/WinMain/DllMain (though DllMain has to be explicitly declared extern "C").
llvm::Triple::isOSMSVCRT(), what this patch uses, is true for Mingw targets.
More information about the cfe-commits