cleanup Codegen stuff to remove many variables from CodeGenFunction