Close #52781: for LTO, the inline asm diagnostic uses <inline asm> as the file
name (lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp) and it is unclear which
module has the issue.
With this patch, we will see the module name (say asm.o) before <inline asm> with ThinLTO.
% clang -flto=thin -c asm.c && myld.lld asm.o -e f ld.lld: error: asm.o <inline asm>:1:2: invalid instruction mnemonic 'invalid' invalid ^~~~~~~
For regular LTO, unfortunately the original module name is lost and we only get
ld-temp.o.