Path: blob/main/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/PPCXCOFFStreamer.h
35294 views
//===- PPCXCOFFStreamer.h - XCOFF Object Output -----------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This is a custom MCXCOFFStreamer for PowerPC.9//10//===----------------------------------------------------------------------===//1112#ifndef LLVM_LIB_TARGET_PPC_MCXCOFFSTREAMER_PPCXCOFFSTREAMER_H13#define LLVM_LIB_TARGET_PPC_MCXCOFFSTREAMER_PPCXCOFFSTREAMER_H1415#include "llvm/MC/MCXCOFFStreamer.h"1617namespace llvm {1819class PPCXCOFFStreamer : public MCXCOFFStreamer {20public:21PPCXCOFFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> MAB,22std::unique_ptr<MCObjectWriter> OW,23std::unique_ptr<MCCodeEmitter> Emitter);2425void emitInstruction(const MCInst &Inst, const MCSubtargetInfo &STI) override;2627private:28void emitPrefixedInstruction(const MCInst &Inst, const MCSubtargetInfo &STI);29};3031MCXCOFFStreamer *createPPCXCOFFStreamer(MCContext &Context,32std::unique_ptr<MCAsmBackend> MAB,33std::unique_ptr<MCObjectWriter> OW,34std::unique_ptr<MCCodeEmitter> Emitter);35} // end namespace llvm3637#endif // LLVM_LIB_TARGET_PPC_MCXCOFFSTREAMER_PPCXCOFFSTREAMER_H383940