CXX_FAST_TLS calling convention: target independent portion.
Update supportSplitCSR's interface to take machine function instead of the
calling convention.
Review comments for http://reviews.llvm.org/D15341
llvm-svn: 255818
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 5f3e4a0..853a21a 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -470,9 +470,9 @@
FuncInfo->SplitCSR = false;
SmallVector<MachineBasicBlock*, 4> Returns;
- // We split CSR if the target supports it for the given calling convention
+ // We split CSR if the target supports it for the given function
// and the function has only return exits.
- if (TLI->supportSplitCSR(Fn.getCallingConv())) {
+ if (TLI->supportSplitCSR(MF)) {
FuncInfo->SplitCSR = true;
// Collect all the return blocks.