Beautify code a little
This commit is contained in:
committed by
Pavel Punegov
parent
d5fcf23629
commit
17ead04c00
+6
-7
@@ -57,13 +57,12 @@ object TopDownAnalyzerFacadeForKonan {
|
||||
config: KonanConfig
|
||||
): AnalysisResult {
|
||||
|
||||
val verbose = config.configuration.get(KonanConfigKeys.VERBOSE_PHASES)
|
||||
?.contains(KonanPhase.FRONTEND.visibleName)
|
||||
?: false
|
||||
if (verbose) {
|
||||
// we print out each file we compile for now
|
||||
files.forEach { println(it) }
|
||||
}
|
||||
// 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)
|
||||
|
||||
val analyzerForKonan = createTopDownAnalyzerForKonan(
|
||||
moduleContext, trace,
|
||||
|
||||
Reference in New Issue
Block a user