summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ProfileData/InstrProf.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-03-21 20:42:28 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-03-21 20:42:28 +0000
commit531bb481e22f429157811f215c044ee0634f2c1f (patch)
treec3a796d0bf0314869ed8add29ee5f4aeecc3e0d9 /llvm/lib/ProfileData/InstrProf.cpp
parent83ba74fa3f16ff396b6d609c5dabf3eda3f221d2 (diff)
downloadbcm5719-llvm-531bb481e22f429157811f215c044ee0634f2c1f.tar.gz
bcm5719-llvm-531bb481e22f429157811f215c044ee0634f2c1f.zip
InstrProf: Actually detect bad headers
<rdar://problem/15950346> llvm-svn: 204510
Diffstat (limited to 'llvm/lib/ProfileData/InstrProf.cpp')
-rw-r--r--llvm/lib/ProfileData/InstrProf.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/ProfileData/InstrProf.cpp b/llvm/lib/ProfileData/InstrProf.cpp
index ecabdd75bdf..850f61354e3 100644
--- a/llvm/lib/ProfileData/InstrProf.cpp
+++ b/llvm/lib/ProfileData/InstrProf.cpp
@@ -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:
OpenPOWER on IntegriCloud