summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/SelectionDAGISel.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-19 22:51:14 +0000
committerDan Gohman <gohman@apple.com>2010-04-19 22:51:14 +0000
commit35bb85b7ee108a265a20686e97d1b011f4ab5ce9 (patch)
treee4be8f65eb18f8bd76ebfda392037ff65665aea9 /include/llvm/CodeGen/SelectionDAGISel.h
parent1f65453d0a26d12a224f1380c71238f7b2d26e95 (diff)
downloadllvm-35bb85b7ee108a265a20686e97d1b011f4ab5ce9.tar.gz
llvm-35bb85b7ee108a265a20686e97d1b011f4ab5ce9.tar.bz2
llvm-35bb85b7ee108a265a20686e97d1b011f4ab5ce9.tar.xz
Eliminate SelectionDAGISel's "current block" member. Just pass it as
an argument to things that need it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101825 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SelectionDAGISel.h')
-rw-r--r--include/llvm/CodeGen/SelectionDAGISel.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGISel.h b/include/llvm/CodeGen/SelectionDAGISel.h
index 03d9bf5a9a..8fddb54452 100644
--- a/include/llvm/CodeGen/SelectionDAGISel.h
+++ b/include/llvm/CodeGen/SelectionDAGISel.h
@@ -46,7 +46,6 @@ public:
MachineRegisterInfo *RegInfo;
SelectionDAG *CurDAG;
SelectionDAGBuilder *SDB;
- MachineBasicBlock *BB;
AliasAnalysis *AA;
GCFunctionInfo *GFI;
CodeGenOpt::Level OptLevel;
@@ -283,13 +282,14 @@ private:
void PrepareEHLandingPad(MachineBasicBlock *BB);
void SelectAllBasicBlocks(const Function &Fn);
- void FinishBasicBlock();
+ void FinishBasicBlock(MachineBasicBlock *BB);
- void SelectBasicBlock(const BasicBlock *LLVMBB,
+ void SelectBasicBlock(MachineBasicBlock *BB,
+ const BasicBlock *LLVMBB,
BasicBlock::const_iterator Begin,
BasicBlock::const_iterator End,
bool &HadTailCall);
- void CodeGenAndEmitDAG();
+ void CodeGenAndEmitDAG(MachineBasicBlock *BB);
void LowerArguments(const BasicBlock *BB);
void ShrinkDemandedOps();