From d42718080f1f140726220563d741261fd7f661c5 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 11 May 2010 20:30:00 +0000 Subject: [PATCH] Revert r103493, materializing functions in the regular PassManager. It works in simple cases, but it isn't a general solution. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103499 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/PassManager.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index 6883e9f9b12..a56938c1592 100644 --- a/lib/VMCore/PassManager.cpp +++ b/lib/VMCore/PassManager.cpp @@ -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; } -- 2.34.1