Instead, introduce GeneratedCodeInfo which passes in what we need, and adjust the codegen to take account of this.