[XRay] Make Trace loading endian-aware
authorDean Michael Berris <dberris@google.com>
Fri, 31 Aug 2018 17:06:28 +0000 (17:06 +0000)
committerDean Michael Berris <dberris@google.com>
Fri, 31 Aug 2018 17:06:28 +0000 (17:06 +0000)
commit5b7548c65307e90db7278b0251e8fef095086ad6
tree61e2b5a20cbaccdcca7ecde95beeee0c4b0d0595
parent98717978c9336a2ea274d61219a1b5ff86d6bfb0
[XRay] Make Trace loading endian-aware

This change makes the XRay Trace loading functions first use a
little-endian data extractor, then on failures try a big-endian data
extractor. Without this change, the trace loading facility will not work
with data written from a big-endian machine.

Follow-up to D51210 and D51289.

llvm-svn: 341226
llvm/lib/XRay/Trace.cpp