diff options
| author | Nate Begeman <natebegeman@mac.com> | 2005-07-21 01:25:49 +0000 |
|---|---|---|
| committer | Nate Begeman <natebegeman@mac.com> | 2005-07-21 01:25:49 +0000 |
| commit | 15527113abb1358b05ab079a43b8f8eb71b31711 (patch) | |
| tree | f88ddda3a42dcc83b78b084be60ff35276d0c34a | |
| parent | 4e6c118b4dd729e26a2675c1ae1d27637d811c56 (diff) | |
| download | bcm5719-llvm-15527113abb1358b05ab079a43b8f8eb71b31711.tar.gz bcm5719-llvm-15527113abb1358b05ab079a43b8f8eb71b31711.zip | |
Support assembling fsqrt on darwin. This will be implemented better when
PowerPC gets subtarget support up.
llvm-svn: 22489
| -rw-r--r-- | llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp index 9a9752c73bc..992446e76f7 100644 --- a/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp +++ b/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.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; |

