PPCTargetStreamer.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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. #ifndef LLVM_LIB_TARGET_POWERPC_PPCTARGETSTREAMER_H
  9. #define LLVM_LIB_TARGET_POWERPC_PPCTARGETSTREAMER_H
  10. #include "llvm/ADT/StringRef.h"
  11. #include "llvm/MC/MCStreamer.h"
  12. namespace llvm {
  13. class MCExpr;
  14. class MCSymbol;
  15. class MCSymbolELF;
  16. class PPCTargetStreamer : public MCTargetStreamer {
  17. public:
  18. PPCTargetStreamer(MCStreamer &S);
  19. ~PPCTargetStreamer() override;
  20. virtual void emitTCEntry(const MCSymbol &S,
  21. MCSymbolRefExpr::VariantKind Kind) = 0;
  22. virtual void emitMachine(StringRef CPU) = 0;
  23. virtual void emitAbiVersion(int AbiVersion) = 0;
  24. virtual void emitLocalEntry(MCSymbolELF *S, const MCExpr *LocalOffset) = 0;
  25. };
  26. } // end namespace llvm
  27. #endif // LLVM_LIB_TARGET_POWERPC_PPCTARGETSTREAMER_H