summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-cov/binary-formats.c
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2015-03-16 21:40:18 +0000
committerJustin Bogner <mail@justinbogner.com>2015-03-16 21:40:18 +0000
commita438717638bfe7e67f82de167306a898571ce925 (patch)
tree14dcce95e2f10b40e2aa6befc74bbcef6477bb1f /llvm/test/tools/llvm-cov/binary-formats.c
parenta20616ec1062e53915c0f7715cde009abe527b73 (diff)
downloadbcm5719-llvm-a438717638bfe7e67f82de167306a898571ce925.tar.gz
bcm5719-llvm-a438717638bfe7e67f82de167306a898571ce925.zip
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. llvm-svn: 232422
Diffstat (limited to 'llvm/test/tools/llvm-cov/binary-formats.c')
-rw-r--r--llvm/test/tools/llvm-cov/binary-formats.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-cov/binary-formats.c b/llvm/test/tools/llvm-cov/binary-formats.c
index e03b8b5739e..6ebd089fbe9 100644
--- a/llvm/test/tools/llvm-cov/binary-formats.c
+++ b/llvm/test/tools/llvm-cov/binary-formats.c
@@ -6,3 +6,4 @@ int main(int argc, const char *argv[]) {}
// RUN: llvm-profdata merge %S/Inputs/binary-formats.proftext -o %t.profdata
// RUN: llvm-cov show %S/Inputs/binary-formats.macho32l -instr-profile %t.profdata -no-colors -filename-equivalence %s | FileCheck %s
// RUN: llvm-cov show %S/Inputs/binary-formats.macho64l -instr-profile %t.profdata -no-colors -filename-equivalence %s | FileCheck %s
+// RUN: llvm-cov show %S/Inputs/binary-formats.macho32b -instr-profile %t.profdata -no-colors -filename-equivalence %s | FileCheck %s
OpenPOWER on IntegriCloud