Simplify ModuleLinker::getLinkageResult. NFC.