blob: cf8db363f1a85f8ae4bdabb269746ec7b3a15205 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// SPDX-License-Identifier: GPL-3.0-or-later
#ifndef RCC_TARGET_RISCV_RISCVTARGETOBJECTFILE_H
#define RCC_TARGET_RISCV_RISCVTARGETOBJECTFILE_H
#include "rcc/CodeGen/TargetLoweringObjectFile.h"
namespace rcc::riscv {
class RISCVELFTargetObjectFile final : public TargetLoweringObjectFile {
public:
[[nodiscard]] Expected<mc::MCSectionDesc>
textSection(const MachineFunction &Function) const override;
[[nodiscard]] Expected<mc::MCSectionDesc> globalSection(const GlobalObjectDesc &Object,
MachineMCContext &Context) const override;
[[nodiscard]] Expected<mc::MCSectionDesc>
constantPoolSection(const MachineFunction &Function,
const MachineConstantPoolEntry &Entry) const override;
[[nodiscard]] Expected<mc::MCSectionDesc>
jumpTableSection(const MachineFunction &Function,
const MachineJumpTableEntry &Entry) const override;
};
} // namespace rcc::riscv
#endif // RCC_TARGET_RISCV_RISCVTARGETOBJECTFILE_H
|