2014-09-16 17:18:23 +08:00
|
|
|
//===-- ARMAsmBackendDarwin.h ARM Asm Backend Darwin ----------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_LIB_TARGET_ARM_ARMASMBACKENDDARWIN_H
|
|
|
|
#define LLVM_LIB_TARGET_ARM_ARMASMBACKENDDARWIN_H
|
|
|
|
|
|
|
|
#include "llvm/Support/MachO.h"
|
|
|
|
|
|
|
|
using namespace llvm;
|
|
|
|
|
|
|
|
namespace {
|
|
|
|
class ARMAsmBackendDarwin : public ARMAsmBackend {
|
|
|
|
public:
|
|
|
|
const MachO::CPUSubTypeARM Subtype;
|
2015-09-15 21:46:21 +08:00
|
|
|
ARMAsmBackendDarwin(const Target &T, const Triple &TT,
|
2015-06-10 18:35:34 +08:00
|
|
|
MachO::CPUSubTypeARM st)
|
2014-09-16 17:18:23 +08:00
|
|
|
: ARMAsmBackend(T, TT, /* IsLittleEndian */ true), Subtype(st) {
|
|
|
|
HasDataInCodeSupport = true;
|
|
|
|
}
|
|
|
|
|
2015-04-15 06:14:34 +08:00
|
|
|
MCObjectWriter *createObjectWriter(raw_pwrite_stream &OS) const override {
|
2014-09-16 17:18:23 +08:00
|
|
|
return createARMMachObjectWriter(OS, /*Is64Bit=*/false, MachO::CPU_TYPE_ARM,
|
|
|
|
Subtype);
|
|
|
|
}
|
|
|
|
};
|
2015-06-23 17:49:53 +08:00
|
|
|
}
|
2014-09-16 17:18:23 +08:00
|
|
|
|
|
|
|
#endif
|