LLVM  3.7.0
ARMAsmBackendDarwin.h
Go to the documentation of this file.
1 //===-- 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 
15 using namespace llvm;
16 
17 namespace {
18 class ARMAsmBackendDarwin : public ARMAsmBackend {
19 public:
20  const MachO::CPUSubTypeARM Subtype;
21  ARMAsmBackendDarwin(const Target &T, const Triple &TT,
23  : ARMAsmBackend(T, TT, /* IsLittleEndian */ true), Subtype(st) {
24  HasDataInCodeSupport = true;
25  }
26 
27  MCObjectWriter *createObjectWriter(raw_pwrite_stream &OS) const override {
28  return createARMMachObjectWriter(OS, /*Is64Bit=*/false, MachO::CPU_TYPE_ARM,
29  Subtype);
30  }
31 };
32 }
33 
34 #endif
MCObjectWriter * createARMMachObjectWriter(raw_pwrite_stream &OS, bool Is64Bit, uint32_t CPUType, uint32_t CPUSubtype)
Construct an ARM Mach-O object writer.
Defines the object file and target independent interfaces used by the assembler backend to write nati...
#define true
Definition: ConvertUTF.c:66
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:44
Target - Wrapper for Target specific information.
An abstract base class for streams implementations that also support a pwrite operation.
Definition: raw_ostream.h:321