mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Pull run() into Pass.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1552 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c7acf81519
commit
80fceef49b
@ -136,13 +136,9 @@ public:
|
||||
PassManager() : Batcher(0) {}
|
||||
~PassManager();
|
||||
|
||||
bool run(Module *M) {
|
||||
bool MadeChanges = false;
|
||||
// Run all of the pass initializers
|
||||
for (unsigned i = 0, e = Passes.size(); i < e; ++i)
|
||||
MadeChanges |= Passes[i]->run(M);
|
||||
return MadeChanges;
|
||||
}
|
||||
// run - Run all of the queued passes on the specified module in an optimal
|
||||
// way.
|
||||
bool run(Module *M);
|
||||
|
||||
// add - Add a pass to the queue of passes to run. This passes ownership of
|
||||
// the Pass to the PassManager. When the PassManager is destroyed, the pass
|
||||
|
Loading…
Reference in New Issue
Block a user