Re-apply r27206: Convert all external function definitions to declarations when compiling with -Onone.

... with disabled test 1_stdlib/Bit.swift for ios.

Most likely the problem of 1_stdlib/Bit.swift (only on armv7) is just uncovered by this change.
Unfortunately I have no possibility to debug the problem on a device. Therefore I filed rdar://problem/20521110




Swift SVN r27274
This commit is contained in:
Erik Eckstein
2015-04-14 07:38:28 +00:00
parent 6e09dad1e6
commit 03d393ef5c
10 changed files with 69 additions and 6 deletions

View File

@@ -602,8 +602,10 @@ static bool performCompile(CompilerInstance &Instance,
} else {
runSILOptimizationPasses(*SM);
}
SM->verify();
} else {
runSILPassesForOnone(*SM);
}
SM->verify();
// Gather instruction counts if we are asked to do so.
if (SM->getOptions().PrintInstCounts) {