#endif
}
-#if defined(TARGET_OSX) || defined(TARGET_LINUX)
-#define COLD_CCONV_SUPPORTED 1
-#elif !defined(TARGET_WATCHOS) && !defined(TARGET_ARM) && !defined(TARGET_ARM64)
-#define COLD_CCONV_SUPPORTED 1
-#endif
-
static void
set_cold_cconv (LLVMValueRef func)
{
* xcode10 (watchOS) and ARM/ARM64 doesn't seem to support preserveall, it fails with:
* fatal error: error in backend: Unsupported calling convention
*/
-#ifdef COLD_CCONV_SUPPORTED
+#if !defined(TARGET_WATCHOS) && !defined(TARGET_ARM) && !defined(TARGET_ARM64)
LLVMSetFunctionCallConv (func, LLVMColdCallConv);
#endif
}
static void
set_call_cold_cconv (LLVMValueRef func)
{
-#ifdef COLD_CCONV_SUPPORTED
+#if !defined(TARGET_WATCHOS) && !defined(TARGET_ARM) && !defined(TARGET_ARM64)
LLVMSetInstructionCallConv (func, LLVMColdCallConv);
#endif
}