aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2005-08-04 21:43:28 +0000
committerNate Begeman <natebegeman@mac.com>2005-08-04 21:43:28 +0000
commit2ac4fc032050ff1e0f06bd8e27126e979406effb (patch)
treedeedb60b2366b8d07f6020a29f67ca89a7e24ad3
parent99558806f8c4c6867a335fe896350302b126a2b5 (diff)
Fix a fixme in LegalizeDAG
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22661 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 69cd725caf..802aba8f49 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -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: