Move EH-specific helper functions to a more appropriate place

No functionality change is intended.

llvm-svn: 254562
20 files changed