Get verbose key other way

This commit is contained in:
Pavel Punegov
2017-12-22 13:43:52 +03:00
committed by Pavel Punegov
parent 17ead04c00
commit 0fc1fb27e1
@@ -58,11 +58,9 @@ object TopDownAnalyzerFacadeForKonan {
): AnalysisResult { ): AnalysisResult {
// we print out each file we compile if frontend phase is verbose // we print out each file we compile if frontend phase is verbose
files.takeIf { files.takeIf { with (KonanPhases) {
config.configuration.get(KonanConfigKeys.VERBOSE_PHASES) phases[known(KonanPhase.FRONTEND.visibleName)]!!.verbose
?.contains(KonanPhase.FRONTEND.visibleName) }} ?.forEach(::println)
?: false
} ?.forEach(::println)
val analyzerForKonan = createTopDownAnalyzerForKonan( val analyzerForKonan = createTopDownAnalyzerForKonan(
moduleContext, trace, moduleContext, trace,