ARMAsmBackendELF.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //===-- ARMAsmBackendELF.h ARM Asm Backend ELF -----------------*- 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_ARM_ELFARMASMBACKEND_H
  9. #define LLVM_LIB_TARGET_ARM_ELFARMASMBACKEND_H
  10. #include "ARMAsmBackend.h"
  11. #include "MCTargetDesc/ARMMCTargetDesc.h"
  12. #include "llvm/MC/MCObjectWriter.h"
  13. using namespace llvm;
  14. namespace {
  15. class ARMAsmBackendELF : public ARMAsmBackend {
  16. public:
  17. uint8_t OSABI;
  18. ARMAsmBackendELF(const Target &T, bool isThumb, uint8_t OSABI,
  19. support::endianness Endian)
  20. : ARMAsmBackend(T, isThumb, Endian), OSABI(OSABI) {}
  21. std::unique_ptr<MCObjectTargetWriter>
  22. createObjectTargetWriter() const override {
  23. return createARMELFObjectWriter(OSABI);
  24. }
  25. Optional<MCFixupKind> getFixupKind(StringRef Name) const override;
  26. };
  27. }
  28. #endif