[llvm] [llvm-profgen] Support COFF binary (PR #83972)
Haohai Wen via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 5 21:57:30 PST 2024
================
@@ -718,7 +740,8 @@ void ProfiledBinary::disassemble(const ELFObjectFileBase *Obj) {
}
// Dissassemble rodata section to check if FS discriminator symbol exists.
- checkUseFSDiscriminator(Obj, AllSymbols);
+ if (auto *ELFObj = dyn_cast<ELFObjectFileBase>(Obj))
+ checkUseFSDiscriminator(ELFObj, AllSymbols);
----------------
HaohaiWen wrote:
Done
https://github.com/llvm/llvm-project/pull/83972
More information about the llvm-commits
mailing list