IR: Add a helper to check for LinkOnceODRLinkage