Revert r244127: [PM] Remove a failed attempt to port the CallGraph
authorChandler Carruth <chandlerc@gmail.com>
Sun, 16 Aug 2015 06:35:19 +0000 (06:35 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 16 Aug 2015 06:35:19 +0000 (06:35 +0000)
commit5df1207c2cf57a98763c28c8534230726ca8fc3a
treefa567770912671f5417266c97735cd99ad5b2175
parent7e9986fa34a97b6d7ae4102de57baa9f0b7b0e0f
Revert r244127: [PM] Remove a failed attempt to port the CallGraph
analysis ...

It turns out that we *do* need the old CallGraph ported to the new pass
manager. There are times where this model of a call graph is really
superior to the one provided by the LazyCallGraph. For example,
GlobalsModRef very specifically needs the model provided by CallGraph.

While here, I've tried to make the move semantics actually work. =]

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