forked from OSchip/llvm-project
parent
068f8222dc
commit
d97e1b8a49
|
@ -136,13 +136,9 @@ public:
|
||||||
PassManager() : Batcher(0) {}
|
PassManager() : Batcher(0) {}
|
||||||
~PassManager();
|
~PassManager();
|
||||||
|
|
||||||
bool run(Module *M) {
|
// run - Run all of the queued passes on the specified module in an optimal
|
||||||
bool MadeChanges = false;
|
// way.
|
||||||
// Run all of the pass initializers
|
bool run(Module *M);
|
||||||
for (unsigned i = 0, e = Passes.size(); i < e; ++i)
|
|
||||||
MadeChanges |= Passes[i]->run(M);
|
|
||||||
return MadeChanges;
|
|
||||||
}
|
|
||||||
|
|
||||||
// add - Add a pass to the queue of passes to run. This passes ownership of
|
// 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
|
// the Pass to the PassManager. When the PassManager is destroyed, the pass
|
||||||
|
|
Loading…
Reference in New Issue