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
This commit is contained in:
Duncan P. N. Exon Smith
2014-03-21 20:42:28 +00:00
parent 56db3a97cd
commit ebaeaa934e
4 changed files with 14 additions and 7 deletions

View File

@ -29,6 +29,8 @@ class InstrProfErrorCategoryType : public error_category {
return "End of File";
case instrprof_error::bad_magic:
return "Invalid file format (bad magic)";
case instrprof_error::bad_header:
return "Invalid header";
case instrprof_error::unsupported_version:
return "Unsupported format version";
case instrprof_error::too_large: