diff options
| author | Vedant Kumar <vsk@apple.com> | 2016-05-16 20:50:36 +0000 |
|---|---|---|
| committer | Vedant Kumar <vsk@apple.com> | 2016-05-16 20:50:36 +0000 |
| commit | cd5efa593bfb68f52a08816ddbc1376374ea910c (patch) | |
| tree | 902c8a2e000f4ab9edf5102bbe9d8437c69384f4 | |
| parent | 3354e2c5fe29651429d1da7b121a7357b41c3854 (diff) | |
| download | bcm5719-llvm-cd5efa593bfb68f52a08816ddbc1376374ea910c.tar.gz bcm5719-llvm-cd5efa593bfb68f52a08816ddbc1376374ea910c.zip | |
Reapply^2 "[ProfileData] (compiler-rt) Use Error in InstrProf and Coverage, NFC"
Sync up with "(llvm) Use Error in InstrProf and Coverage".
Differential Revision: http://reviews.llvm.org/D19903
llvm-svn: 269696
| -rw-r--r-- | compiler-rt/lib/profile/InstrProfData.inc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/compiler-rt/lib/profile/InstrProfData.inc b/compiler-rt/lib/profile/InstrProfData.inc index 49c3266c269..a9f3c50bf97 100644 --- a/compiler-rt/lib/profile/InstrProfData.inc +++ b/compiler-rt/lib/profile/InstrProfData.inc @@ -322,16 +322,15 @@ typedef struct ValueProfData { static std::unique_ptr<ValueProfData> serializeFrom(const InstrProfRecord &Record); /*! - * Check the integrity of the record. Return the error code when - * an error is detected, otherwise return instrprof_error::success. + * Check the integrity of the record. */ - instrprof_error checkIntegrity(); + Error checkIntegrity(); /*! * Return a pointer to \c ValueProfileData instance ready to be read. * All data in the instance are properly byte swapped. The input * data is assumed to be in little endian order. */ - static ErrorOr<std::unique_ptr<ValueProfData>> + static Expected<std::unique_ptr<ValueProfData>> getValueProfData(const unsigned char *SrcBuffer, const unsigned char *const SrcBufferEnd, support::endianness SrcDataEndianness); |

