aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/MC/MCMachObjectWriter.h
blob: 3c2eb2f47869fffd53fea30f91db0a585a05d0a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//===-- llvm/MC/MCMachObjectWriter.h - Mach Object Writer -------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_MC_MCMACHOBJECTWRITER_H
#define LLVM_MC_MCMACHOBJECTWRITER_H

#include "llvm/MC/MCObjectWriter.h"

namespace llvm {

class MCMachObjectTargetWriter {
protected:
  MCMachObjectTargetWriter();

public:
  virtual ~MCMachObjectTargetWriter();
};

/// \brief Construct a new Mach-O writer instance.
///
/// This routine takes ownership of the target writer subclass.
///
/// \param MOTW - The target specific Mach-O writer subclass.
/// \param OS - The stream to write to.
/// \returns The constructed object writer.
MCObjectWriter *createMachObjectWriter(MCMachObjectTargetWriter *MOTW,
                                       raw_ostream &OS, bool is64Bit,
                                       uint32_t CPUType, uint32_t CPUSubtype,
                                       bool IsLittleEndian);

} // End llvm namespace

#endif