From 3bfbfd81e938182bd7f7fc6cace0c23c2da6a96d Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Mon, 10 Mar 2008 02:20:00 +0000 Subject: Turn unwind_to into "unwinds to". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48123 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Utils/CloneFunction.cpp | 2 +- lib/Transforms/Utils/CloneTrace.cpp | 2 +- lib/Transforms/Utils/SimplifyCFG.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Transforms/Utils') diff --git a/lib/Transforms/Utils/CloneFunction.cpp b/lib/Transforms/Utils/CloneFunction.cpp index 5d0d1d8c67..976dda45bf 100644 --- a/lib/Transforms/Utils/CloneFunction.cpp +++ b/lib/Transforms/Utils/CloneFunction.cpp @@ -105,7 +105,7 @@ void llvm::CloneFunctionInto(Function *NewFunc, const Function *OldFunc, // for (Function::iterator BB = cast(ValueMap[OldFunc->begin()]), BE = NewFunc->end(); BB != BE; ++BB) { - // Fix up the unwind_to label. + // Fix up the unwind destination. if (BasicBlock *UnwindDest = BB->getUnwindDest()) BB->setUnwindDest(cast(ValueMap[UnwindDest])); diff --git a/lib/Transforms/Utils/CloneTrace.cpp b/lib/Transforms/Utils/CloneTrace.cpp index 1cedfd872c..968fb5abcc 100644 --- a/lib/Transforms/Utils/CloneTrace.cpp +++ b/lib/Transforms/Utils/CloneTrace.cpp @@ -69,7 +69,7 @@ llvm::CloneTrace(const std::vector &origTrace) { for (std::vector::const_iterator BB = clonedTrace.begin(), BE = clonedTrace.end(); BB != BE; ++BB) { - //Remap the unwind_to label + //Remap the unwind destination if (BasicBlock *UnwindDest = (*BB)->getUnwindDest()) (*BB)->setUnwindDest(cast(ValueMap[UnwindDest])); diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index b9a9bc1c39..ac5c2ec770 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -1829,7 +1829,7 @@ bool llvm::SimplifyCFG(BasicBlock *BB) { // Move all definitions in the successor to the predecessor. OnlyPred->getInstList().splice(OnlyPred->end(), BB->getInstList()); - // Move the unwind_to block + // Move the unwind destination block if (!OnlyPred->getUnwindDest() && BB->getUnwindDest()) OnlyPred->setUnwindDest(BB->getUnwindDest()); -- cgit v1.2.3