diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-08-14 20:10:52 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-08-14 20:10:52 +0000 |
commit | a6b3ce203a09da37ee7f93b8b8339af9e38fdf07 (patch) | |
tree | 6ee83efbe0c12a1ca8c5c3c8355aa5f08e236edb /llvm/lib/Target/CellSPU/SPUISelLowering.cpp | |
parent | dc49a8d3f1e3de05941a987647659d3e70cfff7d (diff) | |
download | bcm5719-llvm-a6b3ce203a09da37ee7f93b8b8339af9e38fdf07.tar.gz bcm5719-llvm-a6b3ce203a09da37ee7f93b8b8339af9e38fdf07.zip |
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!
llvm-svn: 79033
Diffstat (limited to 'llvm/lib/Target/CellSPU/SPUISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/CellSPU/SPUISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/CellSPU/SPUISelLowering.cpp b/llvm/lib/Target/CellSPU/SPUISelLowering.cpp index be3030d5564..84dbb6a9a0f 100644 --- a/llvm/lib/Target/CellSPU/SPUISelLowering.cpp +++ b/llvm/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()); |