]> granicus.if.org Git - llvm/commit
InstrProf: Fix CoverageMappingReader on big endian
authorJustin Bogner <mail@justinbogner.com>
Mon, 16 Mar 2015 21:40:18 +0000 (21:40 +0000)
committerJustin Bogner <mail@justinbogner.com>
Mon, 16 Mar 2015 21:40:18 +0000 (21:40 +0000)
commit4fefd5cdf45243e09249ef1a4b50259dc2d33b5a
tree687b67bd58b66e52bce63702c70650b22dc1ccea
parent759acf348ddc1fb052916b124bd19b3a9717e5c9
InstrProf: Fix CoverageMappingReader on big endian

This makes the reader check the endianness of the object file its
given and behave appropriately. For the test I dug up a really old
linker and created a ppc-apple-darwin file for llvm-cov to read.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232422 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ProfileData/CoverageMappingReader.cpp
test/tools/llvm-cov/Inputs/binary-formats.macho32b [new file with mode: 0755]
test/tools/llvm-cov/binary-formats.c