1 //===-- llvm/MC/MCMachObjectWriter.h - Mach Object Writer -------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_MC_MCMACHOBJECTWRITER_H
11 #define LLVM_MC_MCMACHOBJECTWRITER_H
13 #include "llvm/MC/MCObjectWriter.h"
17 class MCMachObjectTargetWriter {
19 MCMachObjectTargetWriter();
22 virtual ~MCMachObjectTargetWriter();
25 /// \brief Construct a new Mach-O writer instance.
27 /// This routine takes ownership of the target writer subclass.
29 /// \param MOTW - The target specific Mach-O writer subclass.
30 /// \param OS - The stream to write to.
31 /// \returns The constructed object writer.
32 MCObjectWriter *createMachObjectWriter(MCMachObjectTargetWriter *MOTW,
33 raw_ostream &OS, bool is64Bit,
34 uint32_t CPUType, uint32_t CPUSubtype,
37 } // End llvm namespace