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 | |
Benjamin Kramer | 45275a4 | 2016-01-27 18:03:37 +0000 | [diff] [blame] | 13 | #include "ARMAsmBackend.h" |
| 14 | #include "MCTargetDesc/ARMMCTargetDesc.h" |
Joe Abbey | 8e72eb7 | 2014-09-16 09:18:23 +0000 | [diff] [blame] | 15 | using namespace llvm; |
Benjamin Kramer | 45275a4 | 2016-01-27 18:03:37 +0000 | [diff] [blame] | 16 | |
Joe Abbey | 8e72eb7 | 2014-09-16 09:18:23 +0000 | [diff] [blame] | 17 | namespace { |
| 18 | class ARMAsmBackendELF : public ARMAsmBackend { |
| 19 | public: |
| 20 | uint8_t OSABI; |
Daniel Sanders | 50f1723 | 2015-09-15 16:17:27 +0000 | [diff] [blame] | 21 | ARMAsmBackendELF(const Target &T, const Triple &TT, uint8_t OSABI, |
Daniel Sanders | 418caf5 | 2015-06-10 10:35:34 +0000 | [diff] [blame] | 22 | bool IsLittle) |
Joe Abbey | 8e72eb7 | 2014-09-16 09:18:23 +0000 | [diff] [blame] | 23 | : ARMAsmBackend(T, TT, IsLittle), OSABI(OSABI) {} |
| 24 | |
Lang Hames | 60fbc7c | 2017-10-10 16:28:07 +0000 | [diff] [blame] | 25 | std::unique_ptr<MCObjectWriter> |
| 26 | createObjectWriter(raw_pwrite_stream &OS) const override { |
Joe Abbey | 8e72eb7 | 2014-09-16 09:18:23 +0000 | [diff] [blame] | 27 | return createARMELFObjectWriter(OS, OSABI, isLittle()); |
| 28 | } |
| 29 | }; |
Alexander Kornienko | f00654e | 2015-06-23 09:49:53 +0000 | [diff] [blame] | 30 | } |
Joe Abbey | 8e72eb7 | 2014-09-16 09:18:23 +0000 | [diff] [blame] | 31 | |
| 32 | #endif |