Changeset View
Changeset View
Standalone View
Standalone View
lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.cpp
Show First 20 Lines • Show All 233 Lines • ▼ Show 20 Lines | createObjectTargetStreamer(MCStreamer &S, const MCSubtargetInfo &STI) { | ||||
return new PPCTargetMachOStreamer(S); | return new PPCTargetMachOStreamer(S); | ||||
} | } | ||||
static MCInstPrinter *createPPCMCInstPrinter(const Triple &T, | static MCInstPrinter *createPPCMCInstPrinter(const Triple &T, | ||||
unsigned SyntaxVariant, | unsigned SyntaxVariant, | ||||
const MCAsmInfo &MAI, | const MCAsmInfo &MAI, | ||||
const MCInstrInfo &MII, | const MCInstrInfo &MII, | ||||
const MCRegisterInfo &MRI) { | const MCRegisterInfo &MRI) { | ||||
return new PPCInstPrinter(MAI, MII, MRI, T.isOSDarwin()); | return new PPCInstPrinter(MAI, MII, MRI, T); | ||||
} | } | ||||
extern "C" void LLVMInitializePowerPCTargetMC() { | extern "C" void LLVMInitializePowerPCTargetMC() { | ||||
for (Target *T : | for (Target *T : | ||||
{&getThePPC32Target(), &getThePPC64Target(), &getThePPC64LETarget()}) { | {&getThePPC32Target(), &getThePPC64Target(), &getThePPC64LETarget()}) { | ||||
// Register the MC asm info. | // Register the MC asm info. | ||||
RegisterMCAsmInfoFn C(*T, createPPCMCAsmInfo); | RegisterMCAsmInfoFn C(*T, createPPCMCAsmInfo); | ||||
Show All 26 Lines |