forked from OSchip/llvm-project
parent
5635a88fcb
commit
1ffdd57e0a
|
@ -79,8 +79,9 @@ void DSGraphStats::countCallees(const Function& F) {
|
||||||
I != E; ++I)
|
I != E; ++I)
|
||||||
if (isIndirectCallee(I->getCallSite().getCalledValue())) {
|
if (isIndirectCallee(I->getCallSite().getCalledValue())) {
|
||||||
// This is an indirect function call
|
// This is an indirect function call
|
||||||
const std::vector<GlobalValue*> &Callees =
|
std::vector<Function*> Callees;
|
||||||
I->getCalleeNode()->getGlobals();
|
I->getCalleeNode()->addFullFunctionList(Callees);
|
||||||
|
|
||||||
if (Callees.size() > 0) {
|
if (Callees.size() > 0) {
|
||||||
totalNumCallees += Callees.size();
|
totalNumCallees += Callees.size();
|
||||||
++numIndirectCalls;
|
++numIndirectCalls;
|
||||||
|
|
Loading…
Reference in New Issue