[lld] [LLD][COFF] Use parentName for import files in toString. (PR #106104)
Jacek Caban via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 26 10:02:40 PDT 2024
cjacek wrote:
Inspired by @zmodem's comment in #102738. We currently explicitly ignore parentName for import files in toString, which makes error/warning messages less expressive than they would otherwise be.
I tracked the check in toString down to https://reviews.llvm.org/D54802. It looks like this commit set ParentName on import files, so I guess the change was about preserving previous behaviour. However, using it seems reasonable to me. It looks like toString is already used only by error, warnings and logs, so it seems to be a good fit.
https://github.com/llvm/llvm-project/pull/106104
More information about the llvm-commits
mailing list