diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp index 9a9752c73bc..992446e76f7 100644 --- a/lib/Target/PowerPC/PPCAsmPrinter.cpp +++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp @@ -192,6 +192,7 @@ namespace { void printConstantPool(MachineConstantPool *MCP); bool runOnMachineFunction(MachineFunction &F); + bool doInitialization(Module &M); bool doFinalization(Module &M); }; @@ -426,6 +427,14 @@ void DarwinAsmPrinter::printConstantPool(MachineConstantPool *MCP) { } } +bool DarwinAsmPrinter::doInitialization(Module &M) { + // FIXME: implment subtargets for PowerPC and pick this up from there. + O << "\t.machine ppc970\n"; + + AsmPrinter::doInitialization(M); + return false; +} + bool DarwinAsmPrinter::doFinalization(Module &M) { const TargetData &TD = TM.getTargetData(); std::string CurSection;