Revert "(HEAD -> master, origin/master, origin/HEAD) [ProfileData] (compiler-rt) Use Error in InstrProf and Coverage, NFC"
This reverts commit r269464. It fails two llvm-profdata tests. llvm-svn: 269469
This commit is contained in:
parent
2d87639c5a
commit
bd3c2f25fa
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue