[lld] Clean up in lld::{coff,elf}::link after D70378
authorFangrui Song <i@maskray.me>
Fri, 25 Sep 2020 01:01:26 +0000 (18:01 -0700)
committerFangrui Song <i@maskray.me>
Fri, 25 Sep 2020 01:02:45 +0000 (18:02 -0700)
commit1ca6bd261e0aebdd73e3af98fb97c444c2a339cd
treec47f12440b555b8225d323856448e2b73ad5ddff
parent92106641ae297c24877085e0357e8095aa7b43c9
[lld] Clean up in lld::{coff,elf}::link after D70378

Library users should not need to call errorHandler().reset() explicitly.

google/iree calls lld::elf::link and without the patch some global
variables are not cleaned up in the next invocation.
lld/COFF/Driver.cpp
lld/ELF/Driver.cpp