Refactor the addPassesToEmitAssembly interface into a addPassesToEmitFile