diff options
author | Dan Gohman <gohman@apple.com> | 2010-05-11 20:30:00 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-05-11 20:30:00 +0000 |
commit | d42718080f1f140726220563d741261fd7f661c5 (patch) | |
tree | 6c5692465ee5a9baae81e72e4494870c5c6da8ca /lib/VMCore | |
parent | 16d8f8bd919b72866e687d99f3aa94a140137c59 (diff) | |
download | external_llvm-d42718080f1f140726220563d741261fd7f661c5.zip external_llvm-d42718080f1f140726220563d741261fd7f661c5.tar.gz external_llvm-d42718080f1f140726220563d741261fd7f661c5.tar.bz2 |
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
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/PassManager.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index 6883e9f..a56938c 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; } |