[XRay] Use correct type for PID records

Previously we've been reading and writing the wrong types which only
worked in little endian implementations. This time we're writing the
same typed values the runtime is using, and reading them appropriately
as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341241 91177308-0d34-0410-b5e6-96231b3b80d8
3 files changed