diff options
author | Dan Gohman <gohman@apple.com> | 2010-07-06 22:19:37 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-07-06 22:19:37 +0000 |
commit | c9af33c6854afe7b082af2d892ec5f05dfa383c7 (patch) | |
tree | c472a9bcfbf8079eba8afe93445e760d312fdb30 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 0d881dabc1a4e1aefad6dd38de166d8358285638 (diff) | |
download | external_llvm-c9af33c6854afe7b082af2d892ec5f05dfa383c7.zip external_llvm-c9af33c6854afe7b082af2d892ec5f05dfa383c7.tar.gz external_llvm-c9af33c6854afe7b082af2d892ec5f05dfa383c7.tar.bz2 |
CanLowerReturn doesn't need a SelectionDAG; it just needs an LLVMContext.
SelectBasicBlock doesn't needs its BasicBlock argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107712 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 12b26d7..95ad4a6 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -321,7 +321,6 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) { MachineBasicBlock * SelectionDAGISel::SelectBasicBlock(MachineBasicBlock *BB, - const BasicBlock *LLVMBB, BasicBlock::const_iterator Begin, BasicBlock::const_iterator End, bool &HadTailCall) { @@ -736,7 +735,7 @@ void SelectionDAGISel::SelectAllBasicBlocks(const Function &Fn) { } bool HadTailCall = false; - BB = SelectBasicBlock(BB, LLVMBB, BI, llvm::next(BI), HadTailCall); + BB = SelectBasicBlock(BB, BI, llvm::next(BI), HadTailCall); // If the call was emitted as a tail call, we're done with the block. if (HadTailCall) { @@ -772,7 +771,7 @@ void SelectionDAGISel::SelectAllBasicBlocks(const Function &Fn) { // block. if (BI != End) { bool HadTailCall; - BB = SelectBasicBlock(BB, LLVMBB, BI, End, HadTailCall); + BB = SelectBasicBlock(BB, BI, End, HadTailCall); } FinishBasicBlock(BB); |