summaryrefslogtreecommitdiffstats
path: root/llvm
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
commit15deaa0ab9f7e5021486ce8cdb5cc00cb77bcda4 (patch)
treecb7c00fe07271f1fbe6a4802ad8395127c0d5f56 /llvm
parentadbb711895d9a140a90156b791a5cf3da21fb723 (diff)
downloadbcm5719-llvm-15deaa0ab9f7e5021486ce8cdb5cc00cb77bcda4.tar.gz
bcm5719-llvm-15deaa0ab9f7e5021486ce8cdb5cc00cb77bcda4.zip
s/Method/Function
llvm-svn: 2043
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Analysis/IPA/CallGraph.cpp4
-rw-r--r--llvm/lib/Transforms/IPO/InlineSimple.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Analysis/IPA/CallGraph.cpp b/llvm/lib/Analysis/IPA/CallGraph.cpp
index 98dfbf7e26f..63bb968e925 100644
--- a/llvm/lib/Analysis/IPA/CallGraph.cpp
+++ b/llvm/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);
}
}
diff --git a/llvm/lib/Transforms/IPO/InlineSimple.cpp b/llvm/lib/Transforms/IPO/InlineSimple.cpp
index 9ca23f74484..51cde2e799f 100644
--- a/llvm/lib/Transforms/IPO/InlineSimple.cpp
+++ b/llvm/lib/Transforms/IPO/InlineSimple.cpp
@@ -69,7 +69,7 @@ bool InlineMethod(BasicBlock::iterator CIIt) {
assert((*CIIt)->getParent()->getParent() && "Instruction not in method!");
CallInst *CI = cast<CallInst>(*CIIt);
- const Method *CalledMeth = CI->getCalledMethod();
+ const Function *CalledMeth = CI->getCalledFunction();
if (CalledMeth == 0 || // Can't inline external method or indirect call!
CalledMeth->isExternal()) return false;
@@ -242,8 +242,8 @@ static inline bool DoMethodInlining(BasicBlock *BB) {
for (BasicBlock::iterator I = BB->begin(); I != BB->end(); ++I) {
if (CallInst *CI = dyn_cast<CallInst>(*I)) {
// Check to see if we should inline this method
- Method *M = CI->getCalledMethod();
- if (M && ShouldInlineMethod(CI, M))
+ Method *F = CI->getCalledFunction();
+ if (F && ShouldInlineMethod(CI, F))
return InlineMethod(I);
}
}
OpenPOWER on IntegriCloud