diff options
author | Vedant Kumar <vsk@apple.com> | 2016-05-19 03:55:20 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2016-05-19 03:55:20 +0000 |
commit | 3afe657030ef3a19cef88206d6d932343057ecb5 (patch) | |
tree | 64ebab1feb02a9140b693739971f06055d65906f | |
parent | fa2d595541cf1489af3747cc38c096b2e2cdcc32 (diff) | |
download | bcm5719-llvm-3afe657030ef3a19cef88206d6d932343057ecb5.tar.gz bcm5719-llvm-3afe657030ef3a19cef88206d6d932343057ecb5.zip |
Reapply^3 "[ProfileData] (compiler-rt) Use Error in InstrProf and Coverage, NFC"
Sync up with "(llvm) Use Error in InstrProf and Coverage".
llvm-svn: 270022
-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); |