From 6e8feb15a0d256ca19e88185f78c81f689ce7d34 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Fri, 28 Aug 2026 14:07:11 +0800 Subject: [RISCV] Separate calling convention assignment --- backend/lib/Target/RISCV/GISel/RISCVCallLowering.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'backend/lib/Target/RISCV/GISel/RISCVCallLowering.h') diff --git a/backend/lib/Target/RISCV/GISel/RISCVCallLowering.h b/backend/lib/Target/RISCV/GISel/RISCVCallLowering.h index dad0875..bc03fe8 100644 --- a/backend/lib/Target/RISCV/GISel/RISCVCallLowering.h +++ b/backend/lib/Target/RISCV/GISel/RISCVCallLowering.h @@ -3,6 +3,7 @@ #ifndef RCC_LIB_TARGET_RISCV_GISEL_RISCVCALLLOWERING_H #define RCC_LIB_TARGET_RISCV_GISEL_RISCVCALLLOWERING_H +#include "../RISCVCallingConv.h" #include "rcc/CodeGen/TargetCallLowering.h" #include "rcc/Target/RISCV/RISCVInstructions.h" @@ -31,11 +32,6 @@ enum class CallValueTransform : std::uint8_t { Bitcast, }; -[[nodiscard]] constexpr CallingConventionID -callingConventionID(CallingConvention Convention) noexcept { - return CallingConventionID::fromValue(static_cast(Convention)); -} - class RISCVCallLowering final : public TargetCallLowering { public: [[nodiscard]] Expected -- cgit v1.2.3