diff options
author | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2021-01-07 16:32:47 -0500 |
---|---|---|
committer | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2021-01-07 17:27:13 -0500 |
commit | eaadb41db6233cf1c9e882d74a31c1f9d6e211ff (patch) | |
tree | 8a5f299985265cd21ee8c2bb7eea302d395a6b0c /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | |
parent | 973c35d3384ace023000eb44442f86a2543ab9eb (diff) | |
download | llvm-eaadb41db6233cf1c9e882d74a31c1f9d6e211ff.zip llvm-eaadb41db6233cf1c9e882d74a31c1f9d6e211ff.tar.gz llvm-eaadb41db6233cf1c9e882d74a31c1f9d6e211ff.tar.bz2 |
[LLD][COFF] When using PCH.OBJ, ensure func_id records indices are remapped under /DEBUG:GHASH
Before this patch, when using LLD with /DEBUG:GHASH and MSVC precomp.OBJ files, we had a bunch of:
lld-link: warning: S_[GL]PROC32ID record in blabla.obj refers to PDB item index 0x206ED1 which is not a LF[M]FUNC_ID record
This was caused by LF_FUNC_ID and LF_MFUNC_ID which didn't have correct mapping to the corresponding TPI records. The root issue was that the indexMapStorage was improperly re-assembled in UsePrecompSource::remapTpiWithGHashes.
After this patch, /DEBUG and /DEBUG:GHASH produce exactly the same debug infos in the PDB.
Differential Revision: https://reviews.llvm.org/D93732
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
0 files changed, 0 insertions, 0 deletions