Support external methods

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2001-07-15 21:43:45 +00:00
parent 21341d3108
commit bc7135f5c0
2 changed files with 2 additions and 0 deletions

View File

@ -70,6 +70,7 @@ bool opt::InlineMethod(BasicBlock::iterator CIIt) {
CallInst *CI = (CallInst*)*CIIt;
const Method *CalledMeth = CI->getCalledMethod();
if (CalledMeth->isExternal()) return false; // Can't inline external method!
Method *CurrentMeth = CI->getParent()->getParent();
//cerr << "Inlining " << CalledMeth->getName() << " into "