1 //===-- ARMAsmBackendDarwin.h ARM Asm Backend Darwin ----------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_LIB_TARGET_ARM_ARMASMBACKENDDARWIN_H
11 #define LLVM_LIB_TARGET_ARM_ARMASMBACKENDDARWIN_H
13 #include "ARMAsmBackend.h"
14 #include "llvm/BinaryFormat/MachO.h"
15 #include "llvm/MC/MCObjectWriter.h"
18 class ARMAsmBackendDarwin : public ARMAsmBackend {
19 const MCRegisterInfo &MRI;
21 const MachO::CPUSubTypeARM Subtype;
22 ARMAsmBackendDarwin(const Target &T, const MCSubtargetInfo &STI,
23 const MCRegisterInfo &MRI, MachO::CPUSubTypeARM st)
24 : ARMAsmBackend(T, STI, support::little), MRI(MRI), Subtype(st) {}
26 std::unique_ptr<MCObjectTargetWriter>
27 createObjectTargetWriter() const override {
28 return createARMMachObjectWriter(/*Is64Bit=*/false, MachO::CPU_TYPE_ARM,
32 uint32_t generateCompactUnwindEncoding(
33 ArrayRef<MCCFIInstruction> Instrs) const override;
35 } // end namespace llvm