LLVM  10.0.0svn
RISCVMCAsmInfo.h
Go to the documentation of this file.
1 //===-- RISCVMCAsmInfo.h - RISCV 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
This class represents lattice values for constants.
Definition: AllocatorList.h:23
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition: MCSymbol.h:41
const MCExpr * getExprForFDESymbol(const MCSymbol *Sym, unsigned Encoding, MCStreamer &Streamer) const override
Base class for the full range of assembler expressions which are needed for parsing.
Definition: MCExpr.h:35
RISCVMCAsmInfo(const Triple &TargetTriple)
Streaming machine code generation interface.
Definition: MCStreamer.h:196
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:43