Add a hasExternalLinkage helper. No functionality change.