xref: /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCAsmInfo.h (revision a64729f5077d77e13b9497cb33ecb3c82e606ee8)
1 //===-- RISCVMCAsmInfo.h - RISC-V Asm Info ---------------------*- C++ -*--===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file contains the declaration of the RISCVMCAsmInfo class.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_LIB_TARGET_RISCV_MCTARGETDESC_RISCVMCASMINFO_H
14 #define LLVM_LIB_TARGET_RISCV_MCTARGETDESC_RISCVMCASMINFO_H
15 
16 #include "llvm/MC/MCAsmInfoELF.h"
17 
18 namespace llvm {
19 class Triple;
20 
21 class RISCVMCAsmInfo : public MCAsmInfoELF {
22   void anchor() override;
23 
24 public:
25   explicit RISCVMCAsmInfo(const Triple &TargetTriple);
26 
27   const MCExpr *getExprForFDESymbol(const MCSymbol *Sym, unsigned Encoding,
28                                     MCStreamer &Streamer) const override;
29 };
30 
31 } // namespace llvm
32 
33 #endif
34