1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 11:33:24 +02:00

Support assembling fsqrt on darwin. This will be implemented better when

PowerPC gets subtarget support up.

llvm-svn: 22489
This commit is contained in:
Nate Begeman 2005-07-21 01:25:49 +00:00
parent 408aab3fd9
commit 95421ab212

View File

@ -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;