summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/InlineSimple.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-07-15 21:43:45 +0000
committerChris Lattner <sabre@nondot.org>2001-07-15 21:43:45 +0000
commitbc7135f5c0aa0c1045e18ff18c98633349dc660c (patch)
treedf906b8c5da90940d12faa49bf484aa2a98bd357 /lib/Transforms/IPO/InlineSimple.cpp
parent21341d3108bfd5e79cb508a617cc6f1ef0bc720c (diff)
downloadllvm-bc7135f5c0aa0c1045e18ff18c98633349dc660c.tar.gz
llvm-bc7135f5c0aa0c1045e18ff18c98633349dc660c.tar.bz2
llvm-bc7135f5c0aa0c1045e18ff18c98633349dc660c.tar.xz
Support external methods
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/InlineSimple.cpp')
-rw-r--r--lib/Transforms/IPO/InlineSimple.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/IPO/InlineSimple.cpp b/lib/Transforms/IPO/InlineSimple.cpp
index b7cefacaf3..bd4fd26a9d 100644
--- a/lib/Transforms/IPO/InlineSimple.cpp
+++ b/lib/Transforms/IPO/InlineSimple.cpp
@@ -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 "