blob: 54e068122299d2609eb4359757b8fdfaffc74402 [file] [log] [blame]
Bill Wendling841056a2007-01-24 03:36:05 +00001//===-- PPCMachOWriterInfo.cpp - Mach-O Writer Info for the PowerPC -------===//
2//
3// The LLVM Compiler Infrastructure
4//
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.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file implements Mach-O writer information for the PowerPC backend.
11//
12//===----------------------------------------------------------------------===//
13
14#include "PPCMachOWriterInfo.h"
15#include "PPCTargetMachine.h"
16using namespace llvm;
17
18PPCMachOWriterInfo::PPCMachOWriterInfo(const PPCTargetMachine &TM)
19 : TargetMachOWriterInfo(TM.getTargetData()->getPointerSizeInBits() == 64 ?
20 HDR_CPU_TYPE_POWERPC64 :
21 HDR_CPU_TYPE_POWERPC,
22 HDR_CPU_SUBTYPE_POWERPC_ALL) {}