]> granicus.if.org Git - clang/commit
[CallGraph] Make sure the edges are not missed due to re-declarations
authorAnna Zaks <ganna@apple.com>
Wed, 17 Dec 2014 00:34:07 +0000 (00:34 +0000)
committerAnna Zaks <ganna@apple.com>
Wed, 17 Dec 2014 00:34:07 +0000 (00:34 +0000)
commit022f9458d99eef2f2fd4509058188c9e2f7aa1f5
tree8f47e408a8dfd3424d3e837dd3064a28b2c4d43b
parent295d20d66fac1cf89448d58b8700f1b392aa7081
[CallGraph] Make sure the edges are not missed due to re-declarations

A patch by Daniel DeFreez!

We were previously dropping edges on re-declarations. Store the
canonical declarations in the graph to ensure that different
references to the same function end up reflected with the same call graph
node.

(Note, this might lead to performance fluctuation because call graph
is used to determine the function analysis order.)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224398 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/CallGraph.cpp
test/Analysis/debug-CallGraph.c