lld-link: Unify symlink code with llvm-lib

llvm-svn: 246139
2 files changed