Skip to content

Commit

Permalink
Merged master:77272d177a2 into amd-gfx:034689d84bb
Browse files Browse the repository at this point in the history
Local branch amd-gfx 034689d Merged master:d1bcddb5c1f into amd-gfx:48d7fbb7f94
Remote branch master 77272d1 [COFF] Fix endianness of .llvm.call-graph-profile section data
  • Loading branch information
Sw authored and Sw committed Jul 12, 2020
2 parents 034689d + 77272d1 commit 8743317
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions llvm/lib/MC/WinCOFFObjectWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1116,9 +1116,9 @@ uint64_t WinCOFFObjectWriter::writeObject(MCAssembler &Asm,
for (const MCAssembler::CGProfileEntry &CGPE : Asm.CGProfile) {
uint32_t FromIndex = CGPE.From->getSymbol().getIndex();
uint32_t ToIndex = CGPE.To->getSymbol().getIndex();
OS.write((const char *)&FromIndex, sizeof(uint32_t));
OS.write((const char *)&ToIndex, sizeof(uint32_t));
OS.write((const char *)&CGPE.Count, sizeof(uint64_t));
support::endian::write(OS, FromIndex, W.Endian);
support::endian::write(OS, ToIndex, W.Endian);
support::endian::write(OS, CGPE.Count, W.Endian);
}
}

Expand Down

0 comments on commit 8743317

Please sign in to comment.