Fixed some warn-override tests in SemaCXX (#122680)
[llvm-project.git] / llvm / lib / Target / ARM / MCTargetDesc / ARMAsmBackendELF.h
blob17ae262c0826a4d06193c954a2d77c16e1ef944c
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 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIB_TARGET_ARM_MCTARGETDESC_ELFARMASMBACKEND_H
10 #define LLVM_LIB_TARGET_ARM_MCTARGETDESC_ELFARMASMBACKEND_H
12 #include "ARMAsmBackend.h"
13 #include "MCTargetDesc/ARMMCTargetDesc.h"
14 #include "llvm/MC/MCObjectWriter.h"
16 namespace llvm {
17 class ARMAsmBackendELF : public ARMAsmBackend {
18 public:
19 uint8_t OSABI;
20 ARMAsmBackendELF(const Target &T, bool isThumb, uint8_t OSABI,
21 llvm::endianness Endian)
22 : ARMAsmBackend(T, isThumb, Endian), OSABI(OSABI) {}
24 std::unique_ptr<MCObjectTargetWriter>
25 createObjectTargetWriter() const override {
26 return createARMELFObjectWriter(OSABI);
29 std::optional<MCFixupKind> getFixupKind(StringRef Name) const override;
31 } // namespace llvm
33 #endif // LLVM_LIB_TARGET_ARM_MCTARGETDESC_ELFARMASMBACKEND_H