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 "llvm/Support/MachO.h"
18 class ARMAsmBackendDarwin : public ARMAsmBackend {
20 const MachO::CPUSubTypeARM Subtype;
21 ARMAsmBackendDarwin(const Target &T, const Triple &TT,
22 MachO::CPUSubTypeARM st)
23 : ARMAsmBackend(T, TT, /* IsLittleEndian */ true), Subtype(st) {
24 HasDataInCodeSupport = true;
27 MCObjectWriter *createObjectWriter(raw_pwrite_stream &OS) const override {
28 return createARMMachObjectWriter(OS, /*Is64Bit=*/false, MachO::CPU_TYPE_ARM,