[ProfileData] Add error codes for compression failures
authorVedant Kumar <vsk@apple.com>
Tue, 3 May 2016 16:53:17 +0000 (16:53 +0000)
committerVedant Kumar <vsk@apple.com>
Tue, 3 May 2016 16:53:17 +0000 (16:53 +0000)
commit43cba7333cb69a1027a2158bb921dea1b0e7eaef
treefeede73a4d10249a0e4cbe15d0fdfde0db1f9f65
parentf28d2a7cb29b80fb5d2e7cf998e7278332244115
[ProfileData] Add error codes for compression failures

Be more specific in describing compression failures. Also, check for
this kind of error in emitNameData().

This is part of a series of patches to transition ProfileData over to
the stricter Error/Expected interface.

llvm-svn: 268400
llvm/include/llvm/ProfileData/InstrProf.h
llvm/lib/ProfileData/InstrProf.cpp
llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp