summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-profdata
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-03-21 20:42:37 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-03-21 20:42:37 +0000
commit745a2bf0b8b9f7bb68d033b165ad77dc71c73b94 (patch)
tree7b775a75fee0ae97943ab9bed417e15c1417db0c /llvm/test/tools/llvm-profdata
parent4c5b7cb1fca96d354d355aa633c1bf2f2da76ea4 (diff)
downloadbcm5719-llvm-745a2bf0b8b9f7bb68d033b165ad77dc71c73b94.tar.gz
bcm5719-llvm-745a2bf0b8b9f7bb68d033b165ad77dc71c73b94.zip
InstrProf: Change magic number to have non-text characters
Include non-text characters in the magic number so that text files can't match. <rdar://problem/15950346> llvm-svn: 204513
Diffstat (limited to 'llvm/test/tools/llvm-profdata')
-rw-r--r--llvm/test/tools/llvm-profdata/Inputs/binary.profdatabin1384 -> 1384 bytes
-rw-r--r--llvm/test/tools/llvm-profdata/raw-magic-but-no-header.test4
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/tools/llvm-profdata/Inputs/binary.profdata b/llvm/test/tools/llvm-profdata/Inputs/binary.profdata
index 156c483d15f..e8cef21de5f 100644
--- a/llvm/test/tools/llvm-profdata/Inputs/binary.profdata
+++ b/llvm/test/tools/llvm-profdata/Inputs/binary.profdata
Binary files differ
diff --git a/llvm/test/tools/llvm-profdata/raw-magic-but-no-header.test b/llvm/test/tools/llvm-profdata/raw-magic-but-no-header.test
index e899ece2755..6db723c3e25 100644
--- a/llvm/test/tools/llvm-profdata/raw-magic-but-no-header.test
+++ b/llvm/test/tools/llvm-profdata/raw-magic-but-no-header.test
@@ -1,6 +1,6 @@
-RUN: printf "warforpl" > %t
+RUN: printf '\201rforpl\377' > %t
RUN: not llvm-profdata show %t 2>&1 | FileCheck %s
-RUN: printf "lprofraw" > %t
+RUN: printf '\377lprofr\201' > %t
RUN: not llvm-profdata show %t 2>&1 | FileCheck %s
CHECK: error: {{.+}}: Invalid header
OpenPOWER on IntegriCloud