I had intended to move this code into the SirFuncCx in rustc_middle, but due to the way the compiler crates depend on each other, this isn't going to be possible (backend types can't appear in librustc_middle).
As a compromise, move the code to its own file, so at least we minimise the chance of merge conflicts with upstream.
I had intended to move this code into the SirFuncCx in rustc_middle, but due to the way the compiler crates depend on each other, this isn't going to be possible (backend types can't appear in librustc_middle).
As a compromise, move the code to its own file, so at least we minimise the chance of merge conflicts with upstream.
Also found a dead argument (second commit).