diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2016-05-14 05:40:00 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2016-05-14 05:40:00 +0000 |
| commit | a3cd590644305727bc54fd63334b1ce0a0401999 (patch) | |
| tree | 841238a3634928eac753302ee27bdd5dab8923d9 | |
| parent | 1b766d09d19ad87fa24cabd6d738d20903ed697d (diff) | |
| download | bcm5719-llvm-a3cd590644305727bc54fd63334b1ce0a0401999.tar.gz bcm5719-llvm-a3cd590644305727bc54fd63334b1ce0a0401999.zip | |
Revert "Reapply "[ProfileData] (compiler-rt) Use Error in InstrProf and Coverage, NFC""
This reverts commit r269493 as the corresponding LLVM commit was
reverted due to lots of warnings. See the review thread for the original
LLVM commit (r269491) for details.
llvm-svn: 269550
| -rw-r--r-- | compiler-rt/lib/profile/InstrProfData.inc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler-rt/lib/profile/InstrProfData.inc b/compiler-rt/lib/profile/InstrProfData.inc index 7358efc18d6..77d44f15bed 100644 --- a/compiler-rt/lib/profile/InstrProfData.inc +++ b/compiler-rt/lib/profile/InstrProfData.inc @@ -295,15 +295,16 @@ typedef struct ValueProfData { static std::unique_ptr<ValueProfData> serializeFrom(const InstrProfRecord &Record); /*! - * Check the integrity of the record. + * Check the integrity of the record. Return the error code when + * an error is detected, otherwise return instrprof_error::success. */ - Error checkIntegrity(); + instrprof_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 Expected<std::unique_ptr<ValueProfData>> + static ErrorOr<std::unique_ptr<ValueProfData>> getValueProfData(const unsigned char *SrcBuffer, const unsigned char *const SrcBufferEnd, support::endianness SrcDataEndianness); |

