[LCG] Just move the allocator (now that we can) when moving a call
authorChandler Carruth <chandlerc@gmail.com>
Thu, 17 Apr 2014 07:25:59 +0000 (07:25 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 17 Apr 2014 07:25:59 +0000 (07:25 +0000)
commita30ccb064b8e0d67c26e087b191561ee2e06aac9
tree7e9352d7d2d68d7e72dc24ab674b283356fe1ce2
parent40f67f57649860bc676df359325c61abc0157a2e
[LCG] Just move the allocator (now that we can) when moving a call
graph. This simplifies the custom move constructor operation to one of
walking the graph and updating the 'up' pointers to point to the new
location of the graph. Switch the nodes from a reference to a pointer
for the 'up' edge to facilitate this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206450 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/LazyCallGraph.h
lib/Analysis/LazyCallGraph.cpp