summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/SimplifyCFG.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2007-12-18 09:59:50 +0000
committerDuncan Sands <baldrick@free.fr>2007-12-18 09:59:50 +0000
commit3353ed09ace5affb4448ea387dc676734ed94e10 (patch)
tree08a6c94a8d9dd23526b51a788d6a0ada0f46ef60 /llvm/lib/Transforms/Scalar/SimplifyCFG.cpp
parent30291f4a3014687be84e33fa0bf86fc8b2dfeb39 (diff)
downloadbcm5719-llvm-3353ed09ace5affb4448ea387dc676734ed94e10.tar.gz
bcm5719-llvm-3353ed09ace5affb4448ea387dc676734ed94e10.zip
Rename isNoReturn to doesNotReturn, and isNoUnwind to
doesNotThrow. llvm-svn: 45160
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SimplifyCFG.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/SimplifyCFG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/SimplifyCFG.cpp b/llvm/lib/Transforms/Scalar/SimplifyCFG.cpp
index 1d34d316a1d..6d24404e681 100644
--- a/llvm/lib/Transforms/Scalar/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Scalar/SimplifyCFG.cpp
@@ -111,7 +111,7 @@ static bool MarkAliveBlocks(BasicBlock *BB,
// canonicalizes unreachable insts into stores to null or undef.
for (BasicBlock::iterator BBI = BB->begin(), E = BB->end(); BBI != E;++BBI){
if (CallInst *CI = dyn_cast<CallInst>(BBI)) {
- if (CI->isNoReturn()) {
+ if (CI->doesNotReturn()) {
// If we found a call to a no-return function, insert an unreachable
// instruction after it. Make sure there isn't *already* one there
// though.
@@ -135,7 +135,7 @@ static bool MarkAliveBlocks(BasicBlock *BB,
// Turn invokes that call 'nounwind' functions into ordinary calls.
if (InvokeInst *II = dyn_cast<InvokeInst>(BB->getTerminator()))
- if (II->isNoUnwind()) {
+ if (II->doesNotThrow()) {
ChangeToCall(II);
Changed = true;
}
OpenPOWER on IntegriCloud