Delete the removeCallEdgeTo callgraph method,
authorDuncan Sands <baldrick@free.fr>
Fri, 5 Sep 2008 21:43:04 +0000 (21:43 +0000)
committerDuncan Sands <baldrick@free.fr>
Fri, 5 Sep 2008 21:43:04 +0000 (21:43 +0000)
commitc94fe21a56f9e4e5ebbe99252a25636c36392509
tree1b51a34152f32ad144178190ba7304ededeaf456
parentf8e35419908270f71597b7fdeab2ac278733904f
Delete the removeCallEdgeTo callgraph method,
because it does not maintain a correct list
of callsites.  I discovered (see following
commit) that the inliner will create a wrong
callgraph if it is fed a callgraph with
correct edges but incorrect callsites.  These
were created by Prune-EH, and while it wasn't
done via removeCallEdgeTo, it could have been
done via removeCallEdgeTo, which is an accident
waiting to happen.  Use removeCallEdgeFor
instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55859 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/CallGraph.h
lib/Analysis/IPA/CallGraph.cpp
lib/Transforms/IPO/PruneEH.cpp
lib/Transforms/Utils/InlineFunction.cpp