Make checks for compiler-generated types more specific (#89327)
authorSven Boemer <sbomer@gmail.com>
Mon, 24 Jul 2023 16:29:43 +0000 (09:29 -0700)
committerGitHub <noreply@github.com>
Mon, 24 Jul 2023 16:29:43 +0000 (09:29 -0700)
commitc23b0bacd84d559a0c58c5da861a376021e8b967
tree3c9347fbba753b6218366ea88811e53f58b5a342
parentdeeeb55ebe596f50cbc42263b9e68f4a9697db46
Make checks for compiler-generated types more specific (#89327)

The only types we want to consider for the compiler-generated
state handling are lambda display classes, and state machine
types. We used to treat all types with compiler-generated names
this way, but this was too broad of a filter because it would
include file-scoped classes (which get names like
`<GeneratedConfigurationBinder_g>F86B5F805A26B32373DA5BA80136649730AD5F76CC2979BFEE086BEB55048B927__CoreBindingHelper`,
for the configuration binder source generator).
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/Dataflow/CompilerGeneratedNames.cs
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/Dataflow/CompilerGeneratedState.cs
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/Dataflow/FlowAnnotations.cs
src/tools/illink/src/linker/Linker.Dataflow/CompilerGeneratedNames.cs
src/tools/illink/src/linker/Linker.Dataflow/CompilerGeneratedState.cs
src/tools/illink/src/linker/Linker.Dataflow/FlowAnnotations.cs