[lld/mac] fill in current and compatibility version for LC_LOAD_(WEAK_)DYLIB
authorNico Weber <thakis@chromium.org>
Tue, 15 Dec 2020 20:25:15 +0000 (15:25 -0500)
committerNico Weber <thakis@chromium.org>
Wed, 16 Dec 2020 00:34:59 +0000 (19:34 -0500)
commitec88746a059d9b73cd6d9096c161bdd0cafc8229
tree7a851306c7e178fa183f9b0a377d008245819f4c
parentd6a74ec826adac16f715c5700fc102c62d1a8bf0
[lld/mac] fill in current and compatibility version for LC_LOAD_(WEAK_)DYLIB

Not sure if anything actually depends on this, but it makes `otool -L`
output look nicer.

Differential Revision: https://reviews.llvm.org/D93332
lld/MachO/InputFiles.cpp
lld/MachO/InputFiles.h
lld/MachO/Writer.cpp
lld/test/MachO/dylink.s
lld/test/MachO/stub-link.s