aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms
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/Transforms
parent87f856c793d77d7fe9abf5c693980b7e2a9b4755 (diff)
downloadexternal_llvm-dc89f87d52298131e2265815b65f7aa22388524f.zip
external_llvm-dc89f87d52298131e2265815b65f7aa22388524f.tar.gz
external_llvm-dc89f87d52298131e2265815b65f7aa22388524f.tar.bz2
s/Method/Function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2043 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/IPO/InlineSimple.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/IPO/InlineSimple.cpp b/lib/Transforms/IPO/InlineSimple.cpp
index 9ca23f7..51cde2e 100644
--- a/lib/Transforms/IPO/InlineSimple.cpp
+++ b/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);
}
}