sivadeilra wrote: I've updated the PR so that the COFF debugging tests pass. I had to run the hot-patching pass a little earlier, so that it ran before the CodeViewDebug pass. https://github.com/llvm/llvm-project/pull/138972