llvm-project
33684ac9 - [llvm][CFI] Do not canonicalize COFF functions in a comdat (#139962)

Commit
173 days ago
[llvm][CFI] Do not canonicalize COFF functions in a comdat (#139962) COFF requires that a function exists with the same name as a comdat. Not having this key function results in `LLVM ERROR: Associative COMDAT symbol '...' does not exist.` CFI by default will attempt to canonicalize a function by appending `.cfi` to its name which allows external references to refer to the new canonical alias, but it does not change the comdat name. We can change the comdat name since symbol and comdat resolution occurs before LTO, so we already know which symbols are prevailing.
Author
Parents
Loading