Use the cached subtarget on the MachineFunction when the AsmPrinter will have a MachineFunction, i.e. in places other than the module level doInitialize/doFinalize. llvm-svn: 232783 GitOrigin-RevId: d83003ea59ca5592580fa2e0ef27c3cac907aa8f