diff options
author | Shoaib Meenai <smeenai@fb.com> | 2021-10-30 16:35:30 -0700 |
---|---|---|
committer | Shoaib Meenai <smeenai@fb.com> | 2021-10-31 16:14:29 -0700 |
commit | 0f6d720f1f485b7a1842170b571e6b9af7bcaa0e (patch) | |
tree | 71ea1df2b5063ab33297fa4dd5354571189cbd77 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | f964ca896f5e2779d178148bc86b86a8ce977c6d (diff) | |
download | llvm-0f6d720f1f485b7a1842170b571e6b9af7bcaa0e.zip llvm-0f6d720f1f485b7a1842170b571e6b9af7bcaa0e.tar.gz llvm-0f6d720f1f485b7a1842170b571e6b9af7bcaa0e.tar.bz2 |
[MachO] Properly reset global state
We need to reset global state between runs, similar to the other ports.
There's some file-static state which needs to be reset as well and we
need to add some new helpers for that.
With this change, most LLD Mach-O tests pass with `LLD_IN_TEST=2` (which
runs the linker twice on each test). Some tests will be fixed by the
remainder of this stack, and the rest are fundamentally incompatible
with that mode (e.g. they intentionally throw fatal errors).
Fixes PR52070.
Reviewed By: #lld-macho, int3
Differential Revision: https://reviews.llvm.org/D112878
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions