LLVM 19.0.0git
ARMAsmBackendELF.h
Go to the documentation of this file.
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
9#ifndef LLVM_LIB_TARGET_ARM_ELFARMASMBACKEND_H
10#define LLVM_LIB_TARGET_ARM_ELFARMASMBACKEND_H
11
12#include "ARMAsmBackend.h"
15
16using namespace llvm;
17
18namespace {
19class ARMAsmBackendELF : public ARMAsmBackend {
20public:
21 uint8_t OSABI;
22 ARMAsmBackendELF(const Target &T, bool isThumb, uint8_t OSABI,
23 llvm::endianness Endian)
24 : ARMAsmBackend(T, isThumb, Endian), OSABI(OSABI) {}
25
26 std::unique_ptr<MCObjectTargetWriter>
27 createObjectTargetWriter() const override {
28 return createARMELFObjectWriter(OSABI);
29 }
30
31 std::optional<MCFixupKind> getFixupKind(StringRef Name) const override;
32};
33}
34
35#endif
static bool isThumb(const MCSubtargetInfo &STI)
std::string Name
endianness Endian
std::optional< MCFixupKind > getFixupKind(StringRef Name) const override
Map a relocation name used in .reloc to a fixup kind.
virtual std::unique_ptr< MCObjectTargetWriter > createObjectTargetWriter() const =0
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:50
Target - Wrapper for Target specific information.
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
std::unique_ptr< MCObjectTargetWriter > createARMELFObjectWriter(uint8_t OSABI)
Construct an ELF Mach-O object writer.
endianness
Definition: bit.h:70