[llvm-commits] [llvm] r37865 - /llvm/trunk/include/llvm/Analysis/Dominators.h

Devang Patel dpatel at apple.com
Tue Jul 3 18:11:19 PDT 2007


Author: dpatel
Date: Tue Jul  3 20:11:19 2007
New Revision: 37865

URL: http://llvm.org/viewvc/llvm-project?rev=37865&view=rev
Log:
Remove unused method - getIDomBlock().

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=37865&r1=37864&r2=37865&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Analysis/Dominators.h (original)
+++ llvm/trunk/include/llvm/Analysis/Dominators.h Tue Jul  3 20:11:19 2007
@@ -149,16 +149,6 @@
     return getNode(BB);
   }
 
-  /// getIDomBlock - return basic block BB's immediate dominator basic block.
-  ///
-  BasicBlock *getIDomBlock(BasicBlock *BB) {
-    DomTreeNode *N = getNode(BB);
-    assert (N && "Missing dominator tree node");
-    DomTreeNode *I = N->getIDom();
-    assert (I && "Missing immediate dominator");
-    return I->getBlock();
-  }
-
   /// getRootNode - This returns the entry node for the CFG of the function.  If
   /// this tree represents the post-dominance relations for a function, however,
   /// this root may be a node with the block == NULL.  This is the case when





More information about the llvm-commits mailing list