mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Rename ConstPoolVal -> Constant
Rename ConstPool* -> Constant* Rename ConstPoolVals.h -> ConstantVals.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1407 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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<ConstPoolVal>(*I))
|
||||
if (::isa<Constant>(*I))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user