mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-16 14:27:54 +00:00
Fix a fixme in LegalizeDAG
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22661 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1486,13 +1486,8 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
|
|||||||
case ISD::FCOS: FnName = VT == MVT::f32 ? "cosf" : "cos"; break;
|
case ISD::FCOS: FnName = VT == MVT::f32 ? "cosf" : "cos"; break;
|
||||||
default: assert(0 && "Unreachable!");
|
default: assert(0 && "Unreachable!");
|
||||||
}
|
}
|
||||||
std::vector<std::pair<SDOperand, const Type*> > Args;
|
SDOperand Dummy;
|
||||||
Args.push_back(std::make_pair(Tmp1, T));
|
Result = ExpandLibCall(FnName, Node, Dummy);
|
||||||
// FIXME: should use ExpandLibCall!
|
|
||||||
std::pair<SDOperand,SDOperand> CallResult =
|
|
||||||
TLI.LowerCallTo(DAG.getEntryNode(), T, false, CallingConv::C, true,
|
|
||||||
DAG.getExternalSymbol(FnName, VT), Args, DAG);
|
|
||||||
Result = LegalizeOp(CallResult.first);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
Reference in New Issue
Block a user