diff options
author | Juergen Ributzka <juergen@apple.com> | 2014-07-16 00:01:22 +0000 |
---|---|---|
committer | Juergen Ributzka <juergen@apple.com> | 2014-07-16 00:01:22 +0000 |
commit | 480872b4cebae33252f301fe3b4dfa0473603dcb (patch) | |
tree | 71f094d4299c221794df6461c793d9342757133b /llvm/lib/CodeGen/Analysis.cpp | |
parent | 22ca3f886006e4500c43f8f0cf5a5c955aa310cc (diff) | |
download | bcm5719-llvm-480872b4cebae33252f301fe3b4dfa0473603dcb.tar.gz bcm5719-llvm-480872b4cebae33252f301fe3b4dfa0473603dcb.zip |
Remove TLI from isInTailCallPosition's arguments. NFC.
There is no need to pass on TLI separately to the function. As Eric pointed out
the Target Machine already provides everything we need.
llvm-svn: 213108
Diffstat (limited to 'llvm/lib/CodeGen/Analysis.cpp')
-rw-r--r-- | llvm/lib/CodeGen/Analysis.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/Analysis.cpp b/llvm/lib/CodeGen/Analysis.cpp index 3740d03b62d..0eabee30e96 100644 --- a/llvm/lib/CodeGen/Analysis.cpp +++ b/llvm/lib/CodeGen/Analysis.cpp @@ -475,8 +475,7 @@ static bool nextRealType(SmallVectorImpl<CompositeType *> &SubTypes, /// between it and the return. /// /// This function only tests target-independent requirements. -bool llvm::isInTailCallPosition(ImmutableCallSite CS, const TargetMachine &TM, - const TargetLoweringBase &TLI) { +bool llvm::isInTailCallPosition(ImmutableCallSite CS, const TargetMachine &TM) { const Instruction *I = CS.getInstruction(); const BasicBlock *ExitBB = I->getParent(); const TerminatorInst *Term = ExitBB->getTerminator(); @@ -509,7 +508,8 @@ bool llvm::isInTailCallPosition(ImmutableCallSite CS, const TargetMachine &TM, return false; } - return returnTypeIsEligibleForTailCall(ExitBB->getParent(), I, Ret, TLI); + return returnTypeIsEligibleForTailCall(ExitBB->getParent(), I, Ret, + *TM.getTargetLowering()); } bool llvm::returnTypeIsEligibleForTailCall(const Function *F, |