LLVM  6.0.0svn
ARMAsmBackendELF.h
Go to the documentation of this file.
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 #include "ARMAsmBackend.h"
15 #include "llvm/MC/MCObjectWriter.h"
16 
17 using namespace llvm;
18 
19 namespace {
20 class ARMAsmBackendELF : public ARMAsmBackend {
21 public:
22  uint8_t OSABI;
23  ARMAsmBackendELF(const Target &T, const Triple &TT, uint8_t OSABI,
24  bool IsLittle)
25  : ARMAsmBackend(T, TT, IsLittle), OSABI(OSABI) {}
26 
27  std::unique_ptr<MCObjectWriter>
28  createObjectWriter(raw_pwrite_stream &OS) const override {
29  return createARMELFObjectWriter(OS, OSABI, isLittle());
30  }
31 };
32 }
33 
34 #endif
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:44
Target - Wrapper for Target specific information.
An abstract base class for streams implementations that also support a pwrite operation.
Definition: raw_ostream.h:337
std::unique_ptr< MCObjectWriter > createARMELFObjectWriter(raw_pwrite_stream &OS, uint8_t OSABI, bool IsLittleEndian)
Construct an ELF Mach-O object writer.