1 //===-- PPCMachOWriterInfo.cpp - Mach-O Writer Info for the PowerPC -------===//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by Bill Wendling and is distributed under the
6 // University of Illinois Open Source License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file implements Mach-O writer information for the PowerPC backend.
12 //===----------------------------------------------------------------------===//
14 #include "PPCMachOWriterInfo.h"
15 #include "PPCTargetMachine.h"
18 PPCMachOWriterInfo::PPCMachOWriterInfo(const PPCTargetMachine &TM)
19 : TargetMachOWriterInfo(TM.getTargetData()->getPointerSizeInBits() == 64 ?
20 HDR_CPU_TYPE_POWERPC64 :
22 HDR_CPU_SUBTYPE_POWERPC_ALL) {}