Use the unique filenames that are used when /lldsavetemps is passed.
After this change, module names for LTO blobs in PDBs will be unique.
Revert some changes from 1e0b158db (2017) that are no longer necessary
after removing MSVC LTO support.
Paths
| Differential D78221
[COFF] Assign unique identifiers to ObjFiles from LTO ClosedPublic Authored by rnk on Apr 15 2020, 11:15 AM.
Details Summary Use the unique filenames that are used when /lldsavetemps is passed. Revert some changes from 1e0b158db (2017) that are no longer necessary
Diff Detail
Event TimelineComment Actions
Is this for debug convenience? (llvm-pdbutil dump output) Or required by some tools?
Comment Actions
MSVC expects a unique name for each module in a pdb. Comment Actions Looks great!
Maybe worth mentioning this for the justification. This revision is now accepted and ready to land.Apr 17 2020, 5:03 PM Comment Actions Apparently I didn't hit send...
Closed by commit rG91a6bfed6163: [COFF] Assign unique identifiers to ObjFiles from LTO (authored by rnk). · Explain WhyApr 17 2020, 5:31 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 257782 lld/COFF/LTO.h
lld/COFF/LTO.cpp
lld/COFF/SymbolTable.h
lld/COFF/SymbolTable.cpp
lld/test/COFF/lto-parallel.ll
lld/test/COFF/pdb-thinlto.ll
lld/test/COFF/thinlto.ll
lld/test/COFF/weak-external.test
lld/test/COFF/weak-external3.test
|
When can objBuf be empty?