forked from OSchip/llvm-project
33b38339a0
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. Reviewed By: #lld-macho, ychen, Jez Ng Differential Revision: https://reviews.llvm.org/D118434 |
||
---|---|---|
.. | ||
Args.cpp | ||
CMakeLists.txt | ||
CommonLinkerContext.cpp | ||
DWARF.cpp | ||
ErrorHandler.cpp | ||
Filesystem.cpp | ||
Memory.cpp | ||
Reproduce.cpp | ||
Strings.cpp | ||
TargetOptionsCommandFlags.cpp | ||
Timer.cpp | ||
Version.cpp |