Remove obsolete method
authorChris Lattner <sabre@nondot.org>
Wed, 11 Feb 2004 01:17:33 +0000 (01:17 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 11 Feb 2004 01:17:33 +0000 (01:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11302 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/BasicBlock.cpp

index 99161d399d47543a3662f3de1b565d61bba5b29e..c24a61e46652a6c6f5a35d14ee475098b5d4ecd5 100644 (file)
@@ -120,19 +120,6 @@ void BasicBlock::dropAllReferences() {
     I->dropAllReferences();
 }
 
-// hasConstantReferences() - This predicate is true if there is a 
-// reference to this basic block in the constant pool for this method.  For
-// example, if a block is reached through a switch table, that table resides
-// in the constant pool, and the basic block is reference from it.
-//
-bool BasicBlock::hasConstantReferences() const {
-  for (use_const_iterator I = use_begin(), E = use_end(); I != E; ++I)
-    if (isa<Constant>((Value*)*I))
-      return true;
-
-  return false;
-}
-
 // removePredecessor - This method is used to notify a BasicBlock that the
 // specified Predecessor of the block is no longer able to reach it.  This is
 // actually not used to update the Predecessor list, but is actually used to