Currently, we only pass the -bdbg:namedsects linker option when PGO is ON and LTO is OFF. That's because LTO does the merging of multiple sections of the same name into a single section, and so we don't need the linker option.
However, the input object files at link step could be a mix of LTO and non-LTO built objects, and so we should always specify the -bdbg:namedsects option when linking with PGO.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo