diff options
author | Owen Anderson <resistor@mac.com> | 2012-11-27 00:53:24 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2012-11-27 00:53:24 +0000 |
commit | 9780d352b9108d49097970f6686fd61aba58d7fc (patch) | |
tree | 505571eeebc1e4a3d2487ac867ab3c218f947dc4 /tools/opt/opt.cpp | |
parent | 6f6b97daf67ba017e5a10125551d5bd39dd80830 (diff) | |
download | external_llvm-9780d352b9108d49097970f6686fd61aba58d7fc.zip external_llvm-9780d352b9108d49097970f6686fd61aba58d7fc.tar.gz external_llvm-9780d352b9108d49097970f6686fd61aba58d7fc.tar.bz2 |
Revert r168635 "Step towards implementation of pass manager with doInitialization and doFinalization per module detangled from runOn?? calls, still has temporary code not to break ASAN to be removed when that pass conforms to the proposed model".
It appears to have broken at least one buildbot.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168654 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt/opt.cpp')
-rw-r--r-- | tools/opt/opt.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index bac0d46..7cced98 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -820,7 +820,9 @@ int main(int argc, char **argv) { cl::PrintOptionValues(); // Now that we have all of the passes ready, run them. + Passes.doInitialization(); Passes.run(*M.get()); + Passes.doFinalization(); // Declare success. if (!NoOutput || PrintBreakpoints) |