Changes in directory llvm/lib/Target/PowerPC:
PPCAsmPrinter.cpp updated: 1.218 -> 1.219 --- Log message: Honor the command line specification for machine type. --- Diffs of the changes: (+12 -1) PPCAsmPrinter.cpp | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletion(-) Index: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp diff -u llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.218 llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.219 --- llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.218 Thu Dec 7 16:21:48 2006 +++ llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp Tue Dec 12 10:07:33 2006 @@ -542,8 +542,19 @@ bool DarwinAsmPrinter::doInitialization(Module &M) { - if (Subtarget.isGigaProcessor()) + const std::string &CPU = Subtarget.getCPU(); + + if (CPU != "generic") + O << "\t.machine ppc" << CPU << "\n"; + else if (Subtarget.isGigaProcessor()) O << "\t.machine ppc970\n"; + else if (Subtarget.isPPC64()) + O << "\t.machine ppc64\n"; + else if (Subtarget.hasAltivec()) + O << "\t.machine ppc7400\n"; + else + O << "\t.machine ppc\n"; + AsmPrinter::doInitialization(M); // Darwin wants symbols to be quoted if they have complex names. _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits