mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-05 18:17:00 +00:00
![Bill Wendling](/assets/img/avatar_default.png)
that the MachOWriter needs in order to do its writing stuff 'n things. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33475 91177308-0d34-0410-b5e6-96231b3b80d8
23 lines
925 B
C++
23 lines
925 B
C++
//===-- PPCMachOWriterInfo.cpp - Mach-O Writer Info for the PowerPC -------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file was developed by Bill Wendling and is distributed under the
|
|
// University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file implements Mach-O writer information for the PowerPC backend.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "PPCMachOWriterInfo.h"
|
|
#include "PPCTargetMachine.h"
|
|
using namespace llvm;
|
|
|
|
PPCMachOWriterInfo::PPCMachOWriterInfo(const PPCTargetMachine &TM)
|
|
: TargetMachOWriterInfo(TM.getTargetData()->getPointerSizeInBits() == 64 ?
|
|
HDR_CPU_TYPE_POWERPC64 :
|
|
HDR_CPU_TYPE_POWERPC,
|
|
HDR_CPU_SUBTYPE_POWERPC_ALL) {}
|