diff options
author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2018-07-10 16:08:27 +0000 |
---|---|---|
committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2018-07-10 16:08:27 +0000 |
commit | e508cd2a04ffc26cdd3bf78ca9a5701f0a4921f3 (patch) | |
tree | 1cfd0db6b0a5bb03cba822a60f526727f18219ed /llvm/lib/CodeGen/GlobalISel/CallLowering.cpp | |
parent | b961fdc509c45a24aec122ff1a05e0e5076c0987 (diff) | |
download | bcm5719-llvm-e508cd2a04ffc26cdd3bf78ca9a5701f0a4921f3.tar.gz bcm5719-llvm-e508cd2a04ffc26cdd3bf78ca9a5701f0a4921f3.zip |
[gcov] Fix gcov profiling on big-endian machines
Two fixes required to handle big-endian systems:
- 64-bit counter values are stored in a mixed-endian format in the
gcov files: a 32-bit low-part followed by a 32-bit high part. Note that
this is already implemented correctly on the LLVM side, see
GCOVBuffer::readInt64.
- The tag values (e.g. arcs tag, object summary tag, ...) are aways
written as the same sequence of bytes independent of byte order. But
when *reading* them back in, the code reads them as 32-bit values in
host byte order. For the comparisons to work correctly, this should
instead always read them as little-endian values.
Fixes PR 38121.
Reviewed By: marco-c
Differential Revision: https://reviews.llvm.org/D49132
llvm-svn: 336693
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/CallLowering.cpp')
0 files changed, 0 insertions, 0 deletions