dont specialize weak functions and the like

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57305 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nuno Lopes 2008-10-08 18:45:59 +00:00
parent 309c80adb5
commit 7a85a62f50

View File

@ -108,7 +108,7 @@ bool PartSpec::runOnModule(Module &M) {
bool Changed = false;
for (Module::iterator I = M.begin(); I != M.end(); ++I) {
Function &F = *I;
if (F.isDeclaration()) continue;
if (F.isDeclaration() || F.mayBeOverridden()) continue;
SmallVector<int, 6> interestingArgs;
scanForInterest(F, interestingArgs);