[master-next] Update to work with recent dominator tree changes.

This patch started with a suggestion from Adrian Prantl to adapt to
LLVM r307953. The code has changed more since then so I modified it
to get it to build and I also fixed up StackPromotion to deal with related
changes. (I did not search back very far but it looks like the StackPromotion
change may have been a latent bug that did not matter much until recent
changes started using the function parameter.)
This commit is contained in:
Bob Wilson
2017-07-19 22:52:21 -07:00
parent 184df66bcf
commit 62c84a5461
2 changed files with 9 additions and 1 deletions

View File

@@ -22,6 +22,14 @@ using namespace swift;
template class llvm::DominatorTreeBase<SILBasicBlock, false>;
template class llvm::DominatorTreeBase<SILBasicBlock, true>;
template class llvm::DomTreeNodeBase<SILBasicBlock>;
using SILDomTree = llvm::DomTreeBase<SILBasicBlock>;
using SILPostDomTree = llvm::PostDomTreeBase<SILBasicBlock>;
template void
llvm::DomTreeBuilder::Calculate<SILDomTree, swift::SILFunction>(
SILDomTree &DT, swift::SILFunction &F);
template void
llvm::DomTreeBuilder::Calculate<SILPostDomTree, swift::SILFunction>(
SILPostDomTree &DT, swift::SILFunction &F);
/// Compute the immediate-dominators map.
DominanceInfo::DominanceInfo(SILFunction *F)