InstrProf: Actually detect bad headers
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 21 Mar 2014 20:42:28 +0000 (20:42 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 21 Mar 2014 20:42:28 +0000 (20:42 +0000)
commitebaeaa934e6c581689edf6acd43d1c6e56d9ab08
tree950a4aee14d4e047cdd3d9a753fe0cd19144e6b4
parent56db3a97cdc241baf425fa6ebc64383a4902517e
InstrProf: Actually detect bad headers

<rdar://problem/15950346>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204510 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ProfileData/InstrProf.h
lib/ProfileData/InstrProf.cpp
lib/ProfileData/InstrProfReader.cpp
test/tools/llvm-profdata/raw-magic-but-no-header.test [new file with mode: 0644]