From 3462ae3ad7944394d0e9b82be222a43a26ca289a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 3 Dec 2001 22:26:30 +0000 Subject: Rename ConstPoolVal -> Constant Rename ConstPool* -> Constant* Rename ConstPoolVals.h -> ConstantVals.h llvm-svn: 1407 --- llvm/lib/VMCore/BasicBlock.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/VMCore/BasicBlock.cpp') diff --git a/llvm/lib/VMCore/BasicBlock.cpp b/llvm/lib/VMCore/BasicBlock.cpp index 40962ef0f3d..861aea43c25 100644 --- a/llvm/lib/VMCore/BasicBlock.cpp +++ b/llvm/lib/VMCore/BasicBlock.cpp @@ -70,14 +70,14 @@ void BasicBlock::dropAllReferences() { std::mem_fun(&Instruction::dropAllReferences)); } -// hasConstantPoolReferences() - This predicate is true if there is a +// 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::hasConstantPoolReferences() const { +bool BasicBlock::hasConstantReferences() const { for (use_const_iterator I = use_begin(), E = use_end(); I != E; ++I) - if (::isa(*I)) + if (::isa(*I)) return true; return false; -- cgit v1.2.3