2014-09-16 17:18:23 +08:00
|
|
|
//===-- ARMAsmBackendELF.h ARM Asm Backend ELF -----------------*- 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_ELFARMASMBACKEND_H
|
|
|
|
#define LLVM_LIB_TARGET_ARM_ELFARMASMBACKEND_H
|
|
|
|
|
2016-01-28 02:03:37 +08:00
|
|
|
#include "ARMAsmBackend.h"
|
|
|
|
#include "MCTargetDesc/ARMMCTargetDesc.h"
|
2014-09-16 17:18:23 +08:00
|
|
|
using namespace llvm;
|
2016-01-28 02:03:37 +08:00
|
|
|
|
2014-09-16 17:18:23 +08:00
|
|
|
namespace {
|
|
|
|
class ARMAsmBackendELF : public ARMAsmBackend {
|
|
|
|
public:
|
|
|
|
uint8_t OSABI;
|
2015-09-16 00:17:27 +08:00
|
|
|
ARMAsmBackendELF(const Target &T, const Triple &TT, uint8_t OSABI,
|
2015-06-10 18:35:34 +08:00
|
|
|
bool IsLittle)
|
2014-09-16 17:18:23 +08:00
|
|
|
: ARMAsmBackend(T, TT, IsLittle), OSABI(OSABI) {}
|
|
|
|
|
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 createARMELFObjectWriter(OS, OSABI, isLittle());
|
|
|
|
}
|
|
|
|
};
|
2015-06-23 17:49:53 +08:00
|
|
|
}
|
2014-09-16 17:18:23 +08:00
|
|
|
|
|
|
|
#endif
|