[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
================
@@ -211,9 +212,12 @@ void ProfiledBinary::load() {
OwningBinary<Binary> OBinary = unwrapOrError(createBinary(Path), Path);
Binary &ExeBinary = *OBinary.getBinary();
- auto *Obj = dyn_cast<ELFObjectFileBase>(&ExeBinary);
- if (!Obj)
- exitWithError("not a valid Elf image", Path);
+ auto *ELFObj = dyn_cast<ELFObjectFileBase>(&ExeBinary);
----------------
HaohaiWen wrote:
Done
https://github.com/llvm/llvm-project/pull/83972
More information about the llvm-commits
mailing list