Reland "[InstrProf] Make the IndexedInstrProf header backwards compatible."
authorSnehasish Kumar <snehasishk@google.com>
Mon, 14 Feb 2022 19:52:40 +0000 (11:52 -0800)
committerSnehasish Kumar <snehasishk@google.com>
Thu, 17 Feb 2022 19:40:32 +0000 (11:40 -0800)
commita3beb34015fcc5b61e804736247781a80554443a
treed7fcd0c2901aa83e622042d9c6deaebc699b520c
parent82e5f951fd6e6ad6323067d8afcf025fc72d9c33
Reland "[InstrProf] Make the IndexedInstrProf header backwards compatible."

This reverts commit 9fd2cb21fb3f763fc784eab198bf1297a24596fa.

Fixes an issue on big endian systems where the format version
was not converted to little endian prior to passing to GET_VERSION.

Differential Revision: https://reviews.llvm.org/D118390
llvm/include/llvm/ProfileData/InstrProf.h
llvm/lib/ProfileData/InstrProf.cpp
llvm/lib/ProfileData/InstrProfReader.cpp