[llvm-commits] CVS: llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp

Nate Begeman natebegeman at mac.com
Wed Jul 20 18:26:01 PDT 2005



Changes in directory llvm/lib/Target/PowerPC:

PowerPCAsmPrinter.cpp updated: 1.80 -> 1.81
---
Log message:

Support assembling fsqrt on darwin.  This will be implemented better when
PowerPC gets subtarget support up.


---
Diffs of the changes:  (+9 -0)

 PowerPCAsmPrinter.cpp |    9 +++++++++
 1 files changed, 9 insertions(+)


Index: llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
diff -u llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp:1.80 llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp:1.81
--- llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp:1.80	Wed Jul 20 17:42:00 2005
+++ llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp	Wed Jul 20 20:25:49 2005
@@ -192,6 +192,7 @@
 
     void printConstantPool(MachineConstantPool *MCP);
     bool runOnMachineFunction(MachineFunction &F);
+    bool doInitialization(Module &M);
     bool doFinalization(Module &M);
   };
 
@@ -426,6 +427,14 @@
   }
 }
 
+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;






More information about the llvm-commits mailing list