summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/CloneFunction.cpp
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2017-05-01 17:07:49 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2017-05-01 17:07:49 +0000
commite6bca0eecbd31d9dd65040b212326330c9cf2655 (patch)
tree3c31531a3f71ae4353cecb5d65ba544283be0a39 /llvm/lib/Transforms/Utils/CloneFunction.cpp
parent2fa360483122f119070b272d93d858befc86cbf6 (diff)
downloadbcm5719-llvm-e6bca0eecbd31d9dd65040b212326330c9cf2655.tar.gz
bcm5719-llvm-e6bca0eecbd31d9dd65040b212326330c9cf2655.zip
Rename WeakVH to WeakTrackingVH; NFC
This relands r301424. llvm-svn: 301812
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneFunction.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/CloneFunction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp
index 385c12302e0..d5124ac8901 100644
--- a/llvm/lib/Transforms/Utils/CloneFunction.cpp
+++ b/llvm/lib/Transforms/Utils/CloneFunction.cpp
@@ -245,7 +245,7 @@ namespace {
void PruningFunctionCloner::CloneBlock(const BasicBlock *BB,
BasicBlock::const_iterator StartingInst,
std::vector<const BasicBlock*> &ToClone){
- WeakVH &BBEntry = VMap[BB];
+ WeakTrackingVH &BBEntry = VMap[BB];
// Have we already cloned this block?
if (BBEntry) return;
@@ -547,7 +547,7 @@ void llvm::CloneAndPruneIntoFromInst(Function *NewFunc, const Function *OldFunc,
// Make a second pass over the PHINodes now that all of them have been
// remapped into the new function, simplifying the PHINode and performing any
// recursive simplifications exposed. This will transparently update the
- // WeakVH in the VMap. Notably, we rely on that so that if we coalesce
+ // WeakTrackingVH in the VMap. Notably, we rely on that so that if we coalesce
// two PHINodes, the iteration over the old PHIs remains valid, and the
// mapping will just map us to the new node (which may not even be a PHI
// node).
OpenPOWER on IntegriCloud