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 {
// we print out each file we compile if frontend phase is verbose
files.takeIf {
config.configuration.get(KonanConfigKeys.VERBOSE_PHASES)
?.contains(KonanPhase.FRONTEND.visibleName)
?: false
} ?.forEach(::println)
files.takeIf { with (KonanPhases) {
phases[known(KonanPhase.FRONTEND.visibleName)]!!.verbose
}} ?.forEach(::println)
val analyzerForKonan = createTopDownAnalyzerForKonan(
moduleContext, trace,