Fix r357749 for big-endian architectures
authorPavel Labath <pavel@labath.sk>
Fri, 5 Apr 2019 08:43:54 +0000 (08:43 +0000)
committerPavel Labath <pavel@labath.sk>
Fri, 5 Apr 2019 08:43:54 +0000 (08:43 +0000)
commitebdc698dbc00ee9c48d2c022bf2a7c828f696674
tree6444ff97dab1a4e9e88f07abbe19b0f3a58b0eee
parent92db30fc004b941cbabec52c0c8f5e3dcb953902
Fix r357749 for big-endian architectures

We need to read the strings from the minidump files as little-endian,
regardless of the host byte order.

I definitely remember thinking about this case while writing the patch
(and in fact, I have implemented that for the "write" case), but somehow
I have ended up not implementing the byte swapping when reading the
data. This adds the necessary byte-swapping and should hopefully fix
test failures on big-endian bots.

llvm-svn: 357754
llvm/lib/Object/Minidump.cpp