add a DEBUG call so that -debug lists when CGSCCPM iterates.

Fix RefreshCallGraph to use CGN->replaceCallEdge instead of hand
rolling its own loop.  replaceCallEdge properly maintains the
reference counts of the nodes, fixing a crash exposed by the
iterative callgraph stuff.

llvm-svn: 102120
2 files changed
tree: a2e1646b9a7002669df5f19c4e73d4ba9884ba6f
  1. clang/
  2. compiler-rt/
  3. llvm/