1 //===- PPCTargetStreamer.h - PPC Target Streamer ----------------*- 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 #ifndef LLVM_LIB_TARGET_POWERPC_PPCTARGETSTREAMER_H 10 #define LLVM_LIB_TARGET_POWERPC_PPCTARGETSTREAMER_H 11 12 #include "PPCMCAsmInfo.h" 13 #include "llvm/ADT/StringRef.h" 14 #include "llvm/MC/MCExpr.h" 15 #include "llvm/MC/MCStreamer.h" 16 17 namespace llvm { 18 19 class MCExpr; 20 class MCSymbol; 21 class MCSymbolELF; 22 23 class PPCTargetStreamer : public MCTargetStreamer { 24 public: 25 PPCTargetStreamer(MCStreamer &S); 26 ~PPCTargetStreamer() override; 27 emitTCEntry(const MCSymbol & S,PPCMCExpr::Specifier Kind)28 virtual void emitTCEntry(const MCSymbol &S, PPCMCExpr::Specifier Kind) {} emitMachine(StringRef CPU)29 virtual void emitMachine(StringRef CPU){}; emitAbiVersion(int AbiVersion)30 virtual void emitAbiVersion(int AbiVersion){}; emitLocalEntry(MCSymbolELF * S,const MCExpr * LocalOffset)31 virtual void emitLocalEntry(MCSymbolELF *S, const MCExpr *LocalOffset){}; 32 }; 33 34 } // end namespace llvm 35 36 #endif // LLVM_LIB_TARGET_POWERPC_PPCTARGETSTREAMER_H 37