brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · a4a2fa3 Raw
47 lines · c
1//===- SparcMCAsmInfo.h - Sparc asm properties -----------------*- 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-exception6//7//===----------------------------------------------------------------------===//8//9// This file contains the declaration of the SparcMCAsmInfo class.10//11//===----------------------------------------------------------------------===//12 13#ifndef LLVM_LIB_TARGET_SPARC_MCTARGETDESC_SPARCMCASMINFO_H14#define LLVM_LIB_TARGET_SPARC_MCTARGETDESC_SPARCMCASMINFO_H15 16#include "llvm/MC/MCAsmInfoELF.h"17 18namespace llvm {19 20class Triple;21 22class SparcELFMCAsmInfo : public MCAsmInfoELF {23  void anchor() override;24 25public:26  explicit SparcELFMCAsmInfo(const Triple &TheTriple);27 28  const MCExpr*29  getExprForPersonalitySymbol(const MCSymbol *Sym, unsigned Encoding,30                              MCStreamer &Streamer) const override;31  const MCExpr* getExprForFDESymbol(const MCSymbol *Sym,32                                    unsigned Encoding,33                                    MCStreamer &Streamer) const override;34 35  void printSpecifierExpr(raw_ostream &OS,36                          const MCSpecifierExpr &Expr) const override;37};38 39namespace Sparc {40uint16_t parseSpecifier(StringRef name);41StringRef getSpecifierName(uint16_t S);42} // namespace Sparc43 44} // end namespace llvm45 46#endif // LLVM_LIB_TARGET_SPARC_MCTARGETDESC_SPARCMCASMINFO_H47