Failing to do so results in std::bad_function_call being
thrown when a pass tries to emit a diagnostic.
I've copied the relevant test over from LLD-ELF's test suite.
Differential D109274
[lld-macho] Initialize LTO backend with diagnostic handler int3 on Sep 4 2021, 10:56 AM. Authored by
Details
Failing to do so results in std::bad_function_call being I've copied the relevant test over from LLD-ELF's test suite.
Diff Detail
Unit Tests
Event TimelineComment Actions Thanks! This seems to check out with the stack trace line that I was seeing. 8 ld64.lld 0x0000000103aeca10 llvm::LLVMContext::diagnose(llvm::DiagnosticInfo const&) + 96 I see from the tests in LLD-ELF that it's separated LTO tests in to its own folder. I'm wondering if we should also do the same for the MachO port? I don't have any strong opinions either ways other than consistency with the ELF port. Comment Actions I intentionally put the tests in a single folder because I didn't really see the value of a subfolder... all our lto tests are prefixed by lto-, so they're easy to glob for anyway. Also, a lot of the ELF tests were written before split-file became available, so they have a lot of extra files under Inputs, and I guess that gets messy after a while without breaking things up into subfolders. |