[llvm-commits] CVS: llvm/lib/VMCore/BasicBlock.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Feb 10 19:18:06 PST 2004
Changes in directory llvm/lib/VMCore:
BasicBlock.cpp updated: 1.41 -> 1.42
---
Log message:
Remove obsolete method
---
Diffs of the changes: (+0 -13)
Index: llvm/lib/VMCore/BasicBlock.cpp
diff -u llvm/lib/VMCore/BasicBlock.cpp:1.41 llvm/lib/VMCore/BasicBlock.cpp:1.42
--- llvm/lib/VMCore/BasicBlock.cpp:1.41 Tue Feb 3 21:57:50 2004
+++ llvm/lib/VMCore/BasicBlock.cpp Tue Feb 10 19:17:33 2004
@@ -120,19 +120,6 @@
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
More information about the llvm-commits
mailing list