summaryrefslogtreecommitdiff
path: root/lib/Target/CellSPU/SPUISelLowering.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-08-14 20:10:52 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-08-14 20:10:52 +0000
commit72977a45a8ad9d9524c9b49399e89fb9a3a676ed (patch)
treec55553467012faa67e7cbf7d9d59fff93516a821 /lib/Target/CellSPU/SPUISelLowering.cpp
parente6c835f42418c0fae6b63908d3c576a26d64cab2 (diff)
downloadllvm-72977a45a8ad9d9524c9b49399e89fb9a3a676ed.tar.gz
llvm-72977a45a8ad9d9524c9b49399e89fb9a3a676ed.tar.bz2
llvm-72977a45a8ad9d9524c9b49399e89fb9a3a676ed.tar.xz
Allow targets to specify their choice of calling conventions per
libcall. Take advantage of this in the ARM backend to rectify broken choice of CC when hard float is in effect. PIC16 may want to see if it could be of use in MakePIC16Libcall, which works unchanged. Patch by Sandeep! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79033 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CellSPU/SPUISelLowering.cpp')
-rw-r--r--lib/Target/CellSPU/SPUISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/CellSPU/SPUISelLowering.cpp b/lib/Target/CellSPU/SPUISelLowering.cpp
index be3030d556..84dbb6a9a0 100644
--- a/lib/Target/CellSPU/SPUISelLowering.cpp
+++ b/lib/Target/CellSPU/SPUISelLowering.cpp
@@ -116,7 +116,7 @@ namespace {
Op.getNode()->getValueType(0).getTypeForEVT(*DAG.getContext());
std::pair<SDValue, SDValue> CallInfo =
TLI.LowerCallTo(InChain, RetTy, isSigned, !isSigned, false, false,
- 0, CallingConv::C, false,
+ 0, TLI.getLibcallCallingConv(LC), false,
/*isReturnValueUsed=*/true,
Callee, Args, DAG,
Op.getDebugLoc());