If the object file contains any DWARF debug info or a gnu-debuglink
section, it is likely using the GNU ABI. If the default target is MSVC,
we should set the module triple to GNU in this case.
- Fixes https://github.com/llvm/llvm-project/issues/50775
- Fixes https://github.com/mstorsjo/llvm-mingw/issues/226
- Fixes https://github.com/mstorsjo/llvm-mingw/issues/282
Depends on D127048