dd813777b9
Compute FQ name of the main class right after running the analysis and before invoking codegen. This is needed because MainFunctionDetector depends on BindingContext, and JVM IR needs to clear BindingContext as soon as it's not necessary to reduce peak memory usage, thus breaking any usages of data from it after the codegen. Also refactor and use the extracted, but not properly reused previously, copy of findMainClass in findMainClass.kt. Note that this replaces NPE in KT-42868 with an UOE.