Joe Abbey | 8e72eb7 | 2014-09-16 09:18:23 +0000 | [diff] [blame] | 1 | //===-- 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 | |
| 13 | using namespace llvm; |
| 14 | namespace { |
| 15 | class ARMAsmBackendELF : public ARMAsmBackend { |
| 16 | public: |
| 17 | uint8_t OSABI; |
| 18 | ARMAsmBackendELF(const Target &T, StringRef TT, uint8_t OSABI, bool IsLittle) |
| 19 | : ARMAsmBackend(T, TT, IsLittle), OSABI(OSABI) {} |
| 20 | |
Rafael Espindola | 5560a4c | 2015-04-14 22:14:34 +0000 | [diff] [blame^] | 21 | MCObjectWriter *createObjectWriter(raw_pwrite_stream &OS) const override { |
Joe Abbey | 8e72eb7 | 2014-09-16 09:18:23 +0000 | [diff] [blame] | 22 | return createARMELFObjectWriter(OS, OSABI, isLittle()); |
| 23 | } |
| 24 | }; |
| 25 | } |
| 26 | |
| 27 | #endif |