mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Let passes get their options (current configuration) from the
PassManager. I think this is much cleaner and more flexible. The various pass builders have no business marshalling these things around, and they shouldn't be bound to the pass C'tor. In the future we will be able override and dynamically modify pass configuration this way. Swift SVN r13626
This commit is contained in:
@@ -34,7 +34,7 @@ void SILPassManager::runOneIteration() {
|
||||
SMT->injectPassManager(this);
|
||||
SMT->injectModule(Mod);
|
||||
SMT->run();
|
||||
if (VerifyAfterAll) {
|
||||
if (Options.EnableParanoidVerification) {
|
||||
DEBUG(Mod->verify());
|
||||
}
|
||||
continue;
|
||||
@@ -47,7 +47,7 @@ void SILPassManager::runOneIteration() {
|
||||
SFT->injectPassManager(this);
|
||||
SFT->injectFunction(&F);
|
||||
SFT->run();
|
||||
if (VerifyAfterAll) {
|
||||
if (Options.EnableParanoidVerification) {
|
||||
DEBUG(Mod->verify());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user