xref: /llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCObjectFileInfo.h (revision 3e7eab099766cc92e5930a7883a014d0de8710d9)
129463612SCraig Topper //===-- RISCVMCObjectFileInfo.h - RISC-V object file Info ------*- C++ -*--===//
254e8cae5SPhilipp Krones //
354e8cae5SPhilipp Krones // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
454e8cae5SPhilipp Krones // See https://llvm.org/LICENSE.txt for license information.
554e8cae5SPhilipp Krones // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
654e8cae5SPhilipp Krones //
754e8cae5SPhilipp Krones //===----------------------------------------------------------------------===//
854e8cae5SPhilipp Krones //
954e8cae5SPhilipp Krones // This file contains the declaration of the RISCVMCObjectFileInfo class.
1054e8cae5SPhilipp Krones //
1154e8cae5SPhilipp Krones //===----------------------------------------------------------------------===//
1254e8cae5SPhilipp Krones 
1354e8cae5SPhilipp Krones #ifndef LLVM_LIB_TARGET_RISCV_MCTARGETDESC_RISCVMCOBJECTFILEINFO_H
1454e8cae5SPhilipp Krones #define LLVM_LIB_TARGET_RISCV_MCTARGETDESC_RISCVMCOBJECTFILEINFO_H
1554e8cae5SPhilipp Krones 
1654e8cae5SPhilipp Krones #include "llvm/MC/MCObjectFileInfo.h"
17*3e7eab09SFangrui Song #include "llvm/MC/MCSubtargetInfo.h"
1854e8cae5SPhilipp Krones 
1954e8cae5SPhilipp Krones namespace llvm {
2054e8cae5SPhilipp Krones 
2154e8cae5SPhilipp Krones class RISCVMCObjectFileInfo : public MCObjectFileInfo {
2254e8cae5SPhilipp Krones public:
23*3e7eab09SFangrui Song   static unsigned getTextSectionAlignment(const MCSubtargetInfo &STI);
2454e8cae5SPhilipp Krones   unsigned getTextSectionAlignment() const override;
2554e8cae5SPhilipp Krones };
2654e8cae5SPhilipp Krones 
2754e8cae5SPhilipp Krones } // namespace llvm
2854e8cae5SPhilipp Krones 
2954e8cae5SPhilipp Krones #endif
30