aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/IPA/CallGraph.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-03-29 17:08:29 +0000
committerChris Lattner <sabre@nondot.org>2002-03-29 17:08:29 +0000
commitdc89f87d52298131e2265815b65f7aa22388524f (patch)
treed768f661540827e49a046b6350e9af674c5cf859 /lib/Analysis/IPA/CallGraph.cpp
parent87f856c793d77d7fe9abf5c693980b7e2a9b4755 (diff)
s/Method/Function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2043 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA/CallGraph.cpp')
-rw-r--r--lib/Analysis/IPA/CallGraph.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/IPA/CallGraph.cpp b/lib/Analysis/IPA/CallGraph.cpp
index 98dfbf7e26..63bb968e92 100644
--- a/lib/Analysis/IPA/CallGraph.cpp
+++ b/lib/Analysis/IPA/CallGraph.cpp
@@ -100,10 +100,10 @@ void CallGraph::addToCallGraph(Function *M) {
Instruction *I = *II;
if (CallInst *CI = dyn_cast<CallInst>(I)) {
- if (CI->getCalledMethod() == 0)
+ if (CI->getCalledFunction() == 0)
Node->addCalledMethod(ExternalNode);
} else if (InvokeInst *II = dyn_cast<InvokeInst>(I)) {
- if (II->getCalledMethod() == 0)
+ if (II->getCalledFunction() == 0)
Node->addCalledMethod(ExternalNode);
}
}