summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/BasicBlock.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-11 01:17:33 +0000
committerChris Lattner <sabre@nondot.org>2004-02-11 01:17:33 +0000
commit2be4744c5ecc33bd589739d623e3d240abcbd455 (patch)
tree0e4ac6beaf8bf9a918cd8eeb4870afca03d64131 /llvm/lib/VMCore/BasicBlock.cpp
parent838b84578118ad169fa068adc486d62cc0788a11 (diff)
downloadbcm5719-llvm-2be4744c5ecc33bd589739d623e3d240abcbd455.tar.gz
bcm5719-llvm-2be4744c5ecc33bd589739d623e3d240abcbd455.zip
Remove obsolete method
llvm-svn: 11302
Diffstat (limited to 'llvm/lib/VMCore/BasicBlock.cpp')
-rw-r--r--llvm/lib/VMCore/BasicBlock.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/VMCore/BasicBlock.cpp b/llvm/lib/VMCore/BasicBlock.cpp
index 99161d399d4..c24a61e4665 100644
--- a/llvm/lib/VMCore/BasicBlock.cpp
+++ b/llvm/lib/VMCore/BasicBlock.cpp
@@ -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
OpenPOWER on IntegriCloud