1 //===-- X86MachObjectWriter.cpp - X86 Mach-O Writer -----------------------===//
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 //===----------------------------------------------------------------------===//
11 #include "llvm/MC/MCMachObjectWriter.h"
15 class X86MachObjectWriter
: public MCMachObjectTargetWriter
{
17 X86MachObjectWriter(bool Is64Bit
, uint32_t CPUType
,
19 : MCMachObjectTargetWriter(Is64Bit
, CPUType
, CPUSubtype
,
20 /*UseAggressiveSymbolFolding=*/Is64Bit
) {}
24 MCObjectWriter
*llvm::createX86MachObjectWriter(raw_ostream
&OS
,
27 uint32_t CPUSubtype
) {
28 return createMachObjectWriter(new X86MachObjectWriter(Is64Bit
,
31 OS
, /*IsLittleEndian=*/true);