[LCG] Remove all of the complexity stemming from supporting copying.
authorChandler Carruth <chandlerc@gmail.com>
Fri, 18 Apr 2014 11:02:33 +0000 (11:02 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 18 Apr 2014 11:02:33 +0000 (11:02 +0000)
commit14def5573601bd07e8e9eea36fa41b77e1eac96e
treea201ca504bf4fb48481212b14837d03d8f2fe2f7
parentd61b3c303c7c3241b10e414f248eb8be3d374664
[LCG] Remove all of the complexity stemming from supporting copying.
Reality is that we're never going to copy one of these. Supporting this
was becoming a nightmare because nothing even causes it to compile most
of the time. Lots of subtle errors built up that wouldn't have been
caught by any "normal" testing.

Also, make the move assignment actually work rather than the bogus swap
implementation that would just infloop if used. As part of that, factor
out the graph pointer updates into a helper to share between move
construction and move assignment.

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