Move private classes into anonymous namespaces

Also merge anonymous namespaces in Targets.cpp a bit. NFC.

llvm-svn: 232945
3 files changed