1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

Revert r103493, materializing functions in the regular PassManager.

It works in simple cases, but it isn't a general solution.

llvm-svn: 103499
This commit is contained in:
Dan Gohman 2010-05-11 20:30:00 +00:00
parent 7d5e4152c3
commit 1ebf23a692

View File

@ -1444,16 +1444,8 @@ bool FPPassManager::runOnFunction(Function &F) {
bool FPPassManager::runOnModule(Module &M) {
bool Changed = doInitialization(M);
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) {
Function &F = *I;
if (F.isMaterializable()) {
std::string errstr;
if (F.Materialize(&errstr))
report_fatal_error("Error reading bitcode file: " + Twine(errstr));
}
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
runOnFunction(*I);
}
return doFinalization(M) || Changed;
}