Delay linkage checks when validating the weakref attribute.

llvm-svn: 172678
3 files changed