aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2005-07-21 01:25:49 +0000
committerNate Begeman <natebegeman@mac.com>2005-07-21 01:25:49 +0000
commit18ed029a7b75b2a39d39cd4c7f2ec68284c10102 (patch)
tree59002b0533cfbfe26041b5fa0df3da3ef7d0c993
parent47183e51c26bee385e53b5a09721455711a1effa (diff)
Support assembling fsqrt on darwin. This will be implemented better when
PowerPC gets subtarget support up. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22489 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/PowerPC/PPCAsmPrinter.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp
index 9a9752c73b..992446e76f 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;