blob: ebef78937b5a64dc1c27223bdf40cf67ea7ffb40 [file] [log] [blame]
Joe Abbey8e72eb72014-09-16 09:18:23 +00001//===-- ARMAsmBackendDarwin.h ARM Asm Backend Darwin ----------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef LLVM_LIB_TARGET_ARM_ARMASMBACKENDDARWIN_H
11#define LLVM_LIB_TARGET_ARM_ARMASMBACKENDDARWIN_H
12
13#include "llvm/Support/MachO.h"
14
15using namespace llvm;
16
17namespace {
18class ARMAsmBackendDarwin : public ARMAsmBackend {
19public:
20 const MachO::CPUSubTypeARM Subtype;
21 ARMAsmBackendDarwin(const Target &T, StringRef TT, MachO::CPUSubTypeARM st)
22 : ARMAsmBackend(T, TT, /* IsLittleEndian */ true), Subtype(st) {
23 HasDataInCodeSupport = true;
24 }
25
Rafael Espindola5560a4c2015-04-14 22:14:34 +000026 MCObjectWriter *createObjectWriter(raw_pwrite_stream &OS) const override {
Joe Abbey8e72eb72014-09-16 09:18:23 +000027 return createARMMachObjectWriter(OS, /*Is64Bit=*/false, MachO::CPU_TYPE_ARM,
28 Subtype);
29 }
30};
31}
32
33#endif