summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Verifier.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-09-20 14:39:18 +0000
committerChris Lattner <sabre@nondot.org>2003-09-20 14:39:18 +0000
commit5dac64f6297e679a7cbbe2ae01b4160bb9db60b1 (patch)
treed535c05b0364b360cc3822368d8a814c0893eddb /llvm/lib/VMCore/Verifier.cpp
parent21f750fabb16cfa94b81000a2c298daf7ed53428 (diff)
downloadbcm5719-llvm-5dac64f6297e679a7cbbe2ae01b4160bb9db60b1.tar.gz
bcm5719-llvm-5dac64f6297e679a7cbbe2ae01b4160bb9db60b1.zip
Rename Function::getEntryNode -> getEntryBlock
llvm-svn: 8625
Diffstat (limited to 'llvm/lib/VMCore/Verifier.cpp')
-rw-r--r--llvm/lib/VMCore/Verifier.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp
index ace5775a0a7..51d378dfd1a 100644
--- a/llvm/lib/VMCore/Verifier.cpp
+++ b/llvm/lib/VMCore/Verifier.cpp
@@ -228,7 +228,7 @@ void Verifier::visitFunction(Function &F) {
verifySymbolTable(F.getSymbolTable());
// Check the entry node
- BasicBlock *Entry = &F.getEntryNode();
+ BasicBlock *Entry = &F.getEntryBlock();
Assert1(pred_begin(Entry) == pred_end(Entry),
"Entry block to function must not have predecessors!", Entry);
}
@@ -482,7 +482,7 @@ void Verifier::visitInstruction(Instruction &I) {
// Use must be dominated by by definition unless use is unreachable!
Assert2(DS->dominates(BB, Pred) ||
- !DS->dominates(&BB->getParent()->getEntryNode(), Pred),
+ !DS->dominates(&BB->getParent()->getEntryBlock(), Pred),
"Instruction does not dominate all uses!",
&I, PN);
}
@@ -490,7 +490,8 @@ void Verifier::visitInstruction(Instruction &I) {
} else {
// Use must be dominated by by definition unless use is unreachable!
Assert2(DS->dominates(&I, Use) ||
- !DS->dominates(&BB->getParent()->getEntryNode(),Use->getParent()),
+ !DS->dominates(&BB->getParent()->getEntryBlock(),
+ Use->getParent()),
"Instruction does not dominate all uses!", &I, Use);
}
}
OpenPOWER on IntegriCloud