File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 16
16
// to link.
17
17
#if defined(swiftCore_EXPORTS)
18
18
namespace llvm {
19
+ #if defined(_WIN32)
20
+ extern void report_bad_alloc_error (const char *Reason, bool GenCrashDiag);
21
+ void _report_bad_alloc_error (const char *Reason, bool GenCrashDiag) {}
22
+ #if defined(_WIN64)
23
+ #pragma comment(linker, "/alternatename:?report_bad_alloc_error@llvm@@YAXPEBD_N@Z=?_report_bad_alloc_error@llvm@@YAXPEBD_N@Z")
24
+ #else
25
+ #pragma comment(linker, "/alternatename:?report_bad_alloc_error@llvm@@YAXPBD_N@Z=?_report_bad_alloc_error@llvm@@YAXPBD_N@Z")
26
+ #endif
27
+ #else
19
28
void __attribute__ ((__weak__, __visibility__(" hidden" )))
20
29
report_bad_alloc_error(const char *Reason, bool GenCrashDiag) {}
30
+ #endif
21
31
} // end namespace llvm
22
32
#endif
23
33
You can’t perform that action at this time.
0 commit comments