These functions are about classifying a global which will actually be
emitted, so it does not make sense for them to take a GlobalValue which may
for example be an alias.
Change the Mach-O object writer and the Hexagon, Lanai and MIPS backends
to look through aliases before using TargetObjectFile interfaces. These are
functional changes but all appear to be bug fixes.