OSDN Git Service

Move createELFObjectWriter to its own header.
[android-x86/external-llvm.git] / include / llvm / MC / MCELFObjectWriter.h
1 //===-- llvm/MC/MCELFObjectWriter.h - ELF Object Writer ---------*- 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_MC_MCELFOBJECTWRITER_H
11 #define LLVM_MC_MCELFOBJECTWRITER_H
12
13 #include "llvm/MC/MCObjectWriter.h"
14 #include "llvm/Support/DataTypes.h"
15
16 namespace llvm {
17 /// \brief Construct a new ELF writer instance.
18 ///
19 /// \param OS - The stream to write to.
20 /// \returns The constructed object writer.
21 MCObjectWriter *createELFObjectWriter(raw_ostream &OS, bool is64Bit,
22                                       Triple::OSType OSType, uint16_t EMachine,
23                                       bool IsLittleEndian,
24                                       bool HasRelocationAddend);
25 } // End llvm namespace
26
27 #endif