From dc89f87d52298131e2265815b65f7aa22388524f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 29 Mar 2002 17:08:29 +0000 Subject: s/Method/Function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2043 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/IPO/InlineSimple.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Transforms') 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(*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(*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); } } -- cgit v1.1