mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-25 00:33:15 +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:
parent
99558806f8
commit
2ac4fc0320
@ -1486,13 +1486,8 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
|
||||
case ISD::FCOS: FnName = VT == MVT::f32 ? "cosf" : "cos"; break;
|
||||
default: assert(0 && "Unreachable!");
|
||||
}
|
||||
std::vector<std::pair<SDOperand, const Type*> > Args;
|
||||
Args.push_back(std::make_pair(Tmp1, T));
|
||||
// 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);
|
||||
SDOperand Dummy;
|
||||
Result = ExpandLibCall(FnName, Node, Dummy);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user