blob: 748f915be17bbbaa0f615f2ba0142637ded5d0e6 [file] [log] [blame]
Joe Abbey8e72eb72014-09-16 09:18:23 +00001//===-- ARMAsmBackendELF.h ARM Asm Backend ELF -----------------*- 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_ELFARMASMBACKEND_H
11#define LLVM_LIB_TARGET_ARM_ELFARMASMBACKEND_H
12
Benjamin Kramer45275a42016-01-27 18:03:37 +000013#include "ARMAsmBackend.h"
14#include "MCTargetDesc/ARMMCTargetDesc.h"
Joe Abbey8e72eb72014-09-16 09:18:23 +000015using namespace llvm;
Benjamin Kramer45275a42016-01-27 18:03:37 +000016
Joe Abbey8e72eb72014-09-16 09:18:23 +000017namespace {
18class ARMAsmBackendELF : public ARMAsmBackend {
19public:
20 uint8_t OSABI;
Daniel Sanders50f17232015-09-15 16:17:27 +000021 ARMAsmBackendELF(const Target &T, const Triple &TT, uint8_t OSABI,
Daniel Sanders418caf52015-06-10 10:35:34 +000022 bool IsLittle)
Joe Abbey8e72eb72014-09-16 09:18:23 +000023 : ARMAsmBackend(T, TT, IsLittle), OSABI(OSABI) {}
24
Rafael Espindola5560a4c2015-04-14 22:14:34 +000025 MCObjectWriter *createObjectWriter(raw_pwrite_stream &OS) const override {
Joe Abbey8e72eb72014-09-16 09:18:23 +000026 return createARMELFObjectWriter(OS, OSABI, isLittle());
27 }
28};
Alexander Kornienkof00654e2015-06-23 09:49:53 +000029}
Joe Abbey8e72eb72014-09-16 09:18:23 +000030
31#endif