PPCXCOFFStreamer.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. //===- PPCXCOFFStreamer.h - XCOFF Object Output -----------------*- 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 is a custom MCXCOFFStreamer for PowerPC.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #ifndef LLVM_LIB_TARGET_PPC_MCXCOFFSTREAMER_PPCXCOFFSTREAMER_H
  13. #define LLVM_LIB_TARGET_PPC_MCXCOFFSTREAMER_PPCXCOFFSTREAMER_H
  14. #include "llvm/MC/MCXCOFFStreamer.h"
  15. namespace llvm {
  16. class PPCXCOFFStreamer : public MCXCOFFStreamer {
  17. public:
  18. PPCXCOFFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> MAB,
  19. std::unique_ptr<MCObjectWriter> OW,
  20. std::unique_ptr<MCCodeEmitter> Emitter);
  21. void emitInstruction(const MCInst &Inst, const MCSubtargetInfo &STI) override;
  22. private:
  23. void emitPrefixedInstruction(const MCInst &Inst, const MCSubtargetInfo &STI);
  24. };
  25. MCXCOFFStreamer *createPPCXCOFFStreamer(MCContext &Context,
  26. std::unique_ptr<MCAsmBackend> MAB,
  27. std::unique_ptr<MCObjectWriter> OW,
  28. std::unique_ptr<MCCodeEmitter> Emitter);
  29. } // end namespace llvm
  30. #endif // LLVM_LIB_TARGET_PPC_MCXCOFFSTREAMER_PPCXCOFFSTREAMER_H