mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
[PowerPC] Delete remnant isOSDarwin references
This commit is contained in:
parent
ade1afb29b
commit
fba3075f39
@ -556,7 +556,7 @@ void PPCInstPrinter::printTLSCall(const MCInst *MI, unsigned OpNo,
|
||||
/// showRegistersWithPercentPrefix - Check if this register name should be
|
||||
/// printed with a percentage symbol as prefix.
|
||||
bool PPCInstPrinter::showRegistersWithPercentPrefix(const char *RegName) const {
|
||||
if (!FullRegNamesWithPercent || TT.isOSDarwin() || TT.getOS() == Triple::AIX)
|
||||
if (!FullRegNamesWithPercent || TT.getOS() == Triple::AIX)
|
||||
return false;
|
||||
|
||||
switch (RegName[0]) {
|
||||
@ -576,7 +576,7 @@ bool PPCInstPrinter::showRegistersWithPercentPrefix(const char *RegName) const {
|
||||
const char *PPCInstPrinter::getVerboseConditionRegName(unsigned RegNum,
|
||||
unsigned RegEncoding)
|
||||
const {
|
||||
if (!TT.isOSDarwin() && !FullRegNames)
|
||||
if (!FullRegNames)
|
||||
return nullptr;
|
||||
if (RegNum < PPC::CR0EQ || RegNum > PPC::CR7UN)
|
||||
return nullptr;
|
||||
@ -598,7 +598,7 @@ const char *PPCInstPrinter::getVerboseConditionRegName(unsigned RegNum,
|
||||
bool PPCInstPrinter::showRegistersWithPrefix() const {
|
||||
if (TT.getOS() == Triple::AIX)
|
||||
return false;
|
||||
return TT.isOSDarwin() || FullRegNamesWithPercent || FullRegNames;
|
||||
return FullRegNamesWithPercent || FullRegNames;
|
||||
}
|
||||
|
||||
void PPCInstPrinter::printOperand(const MCInst *MI, unsigned OpNo,
|
||||
|
@ -13,7 +13,6 @@
|
||||
#ifndef LLVM_LIB_TARGET_POWERPC_MCTARGETDESC_PPCMCASMINFO_H
|
||||
#define LLVM_LIB_TARGET_POWERPC_MCTARGETDESC_PPCMCASMINFO_H
|
||||
|
||||
#include "llvm/MC/MCAsmInfoDarwin.h"
|
||||
#include "llvm/MC/MCAsmInfoELF.h"
|
||||
#include "llvm/MC/MCAsmInfoXCOFF.h"
|
||||
|
||||
|
@ -146,10 +146,7 @@ static std::string getDataLayoutString(const Triple &T) {
|
||||
|
||||
// Note, the alignment values for f64 and i64 on ppc64 in Darwin
|
||||
// documentation are wrong; these are correct (i.e. "what gcc does").
|
||||
if (is64Bit || !T.isOSDarwin())
|
||||
Ret += "-i64:64";
|
||||
else
|
||||
Ret += "-f64:32:64";
|
||||
Ret += "-i64:64";
|
||||
|
||||
// PPC64 has 32 and 64 bit registers, PPC32 has only 32 bit ones.
|
||||
if (is64Bit)
|
||||
@ -197,9 +194,6 @@ static std::string computeFSAdditions(StringRef FS, CodeGenOpt::Level OL,
|
||||
}
|
||||
|
||||
static std::unique_ptr<TargetLoweringObjectFile> createTLOF(const Triple &TT) {
|
||||
if (TT.isOSDarwin())
|
||||
return std::make_unique<TargetLoweringObjectFileMachO>();
|
||||
|
||||
if (TT.isOSAIX())
|
||||
return std::make_unique<TargetLoweringObjectFileXCOFF>();
|
||||
|
||||
@ -208,9 +202,6 @@ static std::unique_ptr<TargetLoweringObjectFile> createTLOF(const Triple &TT) {
|
||||
|
||||
static PPCTargetMachine::PPCABI computeTargetABI(const Triple &TT,
|
||||
const TargetOptions &Options) {
|
||||
if (TT.isOSDarwin())
|
||||
report_fatal_error("Darwin is no longer supported for PowerPC");
|
||||
|
||||
if (Options.MCOptions.getABIName().startswith("elfv1"))
|
||||
return PPCTargetMachine::PPC_ABI_ELFv1;
|
||||
else if (Options.MCOptions.getABIName().startswith("elfv2"))
|
||||
@ -240,10 +231,6 @@ static Reloc::Model getEffectiveRelocModel(const Triple &TT,
|
||||
if (RM.hasValue())
|
||||
return *RM;
|
||||
|
||||
// Darwin defaults to dynamic-no-pic.
|
||||
if (TT.isOSDarwin())
|
||||
return Reloc::DynamicNoPIC;
|
||||
|
||||
// Big Endian PPC and AIX default to PIC.
|
||||
if (TT.getArch() == Triple::ppc64 || TT.isOSAIX())
|
||||
return Reloc::PIC_;
|
||||
|
Loading…
Reference in New Issue
Block a user