| ... | ... | @@ -160,12 +160,6 @@ static ZigLLVM_CallingConv get_llvm_cc(CodeGen *g, CallingConvention cc) { |
| 160 | 160 | return ZigLLVM_Fast; |
| 161 | 161 | case CallingConventionC: |
| 162 | 162 | return ZigLLVM_C; |
| 163 | | case CallingConventionCold: |
| 164 | | if ((g->zig_target->arch == ZigLLVM_x86 || |
| 165 | | g->zig_target->arch == ZigLLVM_x86_64) && |
| 166 | | g->zig_target->os != OsWindows) |
| 167 | | return ZigLLVM_Cold; |
| 168 | | return ZigLLVM_C; |
| 169 | 163 | case CallingConventionNaked: |
| 170 | 164 | zig_unreachable(); |
| 171 | 165 | case CallingConventionStdcall: |
| ... | ... | @@ -339,7 +333,6 @@ static bool cc_want_sret_attr(CallingConvention cc) { |
| 339 | 333 | case CallingConventionNaked: |
| 340 | 334 | zig_unreachable(); |
| 341 | 335 | case CallingConventionC: |
| 342 | | case CallingConventionCold: |
| 343 | 336 | case CallingConventionInterrupt: |
| 344 | 337 | case CallingConventionSignal: |
| 345 | 338 | case CallingConventionStdcall: |
| ... | ... | @@ -448,7 +441,7 @@ static LLVMValueRef make_fn_llvm_value(CodeGen *g, ZigFn *fn) { |
| 448 | 441 | ZigLLVMFunctionSetCallingConv(llvm_fn, get_llvm_cc(g, cc)); |
| 449 | 442 | } |
| 450 | 443 | |
| 451 | | bool want_cold = fn->is_cold || cc == CallingConventionCold; |
| 444 | bool want_cold = fn->is_cold; |
| 452 | 445 | if (want_cold) { |
| 453 | 446 | ZigLLVMAddFunctionAttrCold(llvm_fn); |
| 454 | 447 | } |
| ... | ... | @@ -8818,18 +8811,17 @@ Buf *codegen_generate_builtin_source(CodeGen *g) { |
| 8818 | 8811 | |
| 8819 | 8812 | static_assert(CallingConventionUnspecified == 0, ""); |
| 8820 | 8813 | static_assert(CallingConventionC == 1, ""); |
| 8821 | | static_assert(CallingConventionCold == 2, ""); |
| 8822 | | static_assert(CallingConventionNaked == 3, ""); |
| 8823 | | static_assert(CallingConventionAsync == 4, ""); |
| 8824 | | static_assert(CallingConventionInterrupt == 5, ""); |
| 8825 | | static_assert(CallingConventionSignal == 6, ""); |
| 8826 | | static_assert(CallingConventionStdcall == 7, ""); |
| 8827 | | static_assert(CallingConventionFastcall == 8, ""); |
| 8828 | | static_assert(CallingConventionVectorcall == 9, ""); |
| 8829 | | static_assert(CallingConventionThiscall == 10, ""); |
| 8830 | | static_assert(CallingConventionAPCS == 11, ""); |
| 8831 | | static_assert(CallingConventionAAPCS == 12, ""); |
| 8832 | | static_assert(CallingConventionAAPCSVFP == 13, ""); |
| 8814 | static_assert(CallingConventionNaked == 2, ""); |
| 8815 | static_assert(CallingConventionAsync == 3, ""); |
| 8816 | static_assert(CallingConventionInterrupt == 4, ""); |
| 8817 | static_assert(CallingConventionSignal == 5, ""); |
| 8818 | static_assert(CallingConventionStdcall == 6, ""); |
| 8819 | static_assert(CallingConventionFastcall == 7, ""); |
| 8820 | static_assert(CallingConventionVectorcall == 8, ""); |
| 8821 | static_assert(CallingConventionThiscall == 9, ""); |
| 8822 | static_assert(CallingConventionAPCS == 10, ""); |
| 8823 | static_assert(CallingConventionAAPCS == 11, ""); |
| 8824 | static_assert(CallingConventionAAPCSVFP == 12, ""); |
| 8833 | 8825 | |
| 8834 | 8826 | static_assert(FnInlineAuto == 0, ""); |
| 8835 | 8827 | static_assert(FnInlineAlways == 1, ""); |