blob: 703567d6006f5cc8501ae64dc91f74cdff5b7585 [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
Lang Hames60fbc7c2017-10-10 16:28:07 +000025 std::unique_ptr<MCObjectWriter>
26 createObjectWriter(raw_pwrite_stream &OS) const override {
Joe Abbey8e72eb72014-09-16 09:18:23 +000027 return createARMELFObjectWriter(OS, OSABI, isLittle());
28 }
29};
Alexander Kornienkof00654e2015-06-23 09:49:53 +000030}
Joe Abbey8e72eb72014-09-16 09:18:23 +000031
32#endif