xref: /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCObjectFileInfo.h (revision 06c3fb2749bda94cb5201f81ffdb8fa6c3161b2e)
1*06c3fb27SDimitry Andric //===-- RISCVMCObjectFileInfo.h - RISC-V object file Info ------*- C++ -*--===//
2349cc55cSDimitry Andric //
3349cc55cSDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4349cc55cSDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
5349cc55cSDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6349cc55cSDimitry Andric //
7349cc55cSDimitry Andric //===----------------------------------------------------------------------===//
8349cc55cSDimitry Andric //
9349cc55cSDimitry Andric // This file contains the declaration of the RISCVMCObjectFileInfo class.
10349cc55cSDimitry Andric //
11349cc55cSDimitry Andric //===----------------------------------------------------------------------===//
12349cc55cSDimitry Andric 
13349cc55cSDimitry Andric #ifndef LLVM_LIB_TARGET_RISCV_MCTARGETDESC_RISCVMCOBJECTFILEINFO_H
14349cc55cSDimitry Andric #define LLVM_LIB_TARGET_RISCV_MCTARGETDESC_RISCVMCOBJECTFILEINFO_H
15349cc55cSDimitry Andric 
16349cc55cSDimitry Andric #include "llvm/MC/MCObjectFileInfo.h"
17*06c3fb27SDimitry Andric #include "llvm/MC/MCSubtargetInfo.h"
18349cc55cSDimitry Andric 
19349cc55cSDimitry Andric namespace llvm {
20349cc55cSDimitry Andric 
21349cc55cSDimitry Andric class RISCVMCObjectFileInfo : public MCObjectFileInfo {
22349cc55cSDimitry Andric public:
23*06c3fb27SDimitry Andric   static unsigned getTextSectionAlignment(const MCSubtargetInfo &STI);
24349cc55cSDimitry Andric   unsigned getTextSectionAlignment() const override;
25349cc55cSDimitry Andric };
26349cc55cSDimitry Andric 
27349cc55cSDimitry Andric } // namespace llvm
28349cc55cSDimitry Andric 
29349cc55cSDimitry Andric #endif
30