mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 21:00:29 +00:00
Support external methods
llvm-svn: 200
This commit is contained in:
parent
3e7e97bee3
commit
11f4097f50
@ -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 "
|
||||
|
@ -515,6 +515,7 @@ void SCCP::OperandChangedState(User *U) {
|
||||
// to prove whether a value is constant and whether blocks are used.
|
||||
//
|
||||
bool opt::DoSCCP(Method *M) {
|
||||
if (M->isExternal()) return false;
|
||||
SCCP S(M);
|
||||
return S.doSCCP();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user