[llvm-commits] [llvm] r85010 - /llvm/trunk/include/llvm/Analysis/Dominators.h
Dan Gohman
gohman at apple.com
Sat Oct 24 12:57:59 PDT 2009
Author: djg
Date: Sat Oct 24 14:57:58 2009
New Revision: 85010
URL: http://llvm.org/viewvc/llvm-project?rev=85010&view=rev
Log:
Make DominanceFrontier::addBasicBlock return the iterator for the newly
inserted block.
Modified:
llvm/trunk/include/llvm/Analysis/Dominators.h
Modified: llvm/trunk/include/llvm/Analysis/Dominators.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/Dominators.h?rev=85010&r1=85009&r2=85010&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/Dominators.h (original)
+++ llvm/trunk/include/llvm/Analysis/Dominators.h Sat Oct 24 14:57:58 2009
@@ -905,9 +905,9 @@
iterator find(BasicBlock *B) { return Frontiers.find(B); }
const_iterator find(BasicBlock *B) const { return Frontiers.find(B); }
- void addBasicBlock(BasicBlock *BB, const DomSetType &frontier) {
+ iterator addBasicBlock(BasicBlock *BB, const DomSetType &frontier) {
assert(find(BB) == end() && "Block already in DominanceFrontier!");
- Frontiers.insert(std::make_pair(BB, frontier));
+ return Frontiers.insert(std::make_pair(BB, frontier)).first;
}
/// removeBlock - Remove basic block BB's frontier.
More information about the llvm-commits
mailing list