[compiler-rt] r269464 - [ProfileData] (compiler-rt) Use Error in InstrProf and Coverage, NFC
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Fri May 13 13:01:38 PDT 2016
Author: vedantk
Date: Fri May 13 15:01:38 2016
New Revision: 269464
URL: http://llvm.org/viewvc/llvm-project?rev=269464&view=rev
Log:
[ProfileData] (compiler-rt) Use Error in InstrProf and Coverage, NFC
Sync up with "(llvm) Use Error in InstrProf and Coverage".
Modified:
compiler-rt/trunk/lib/profile/InstrProfData.inc
Modified: compiler-rt/trunk/lib/profile/InstrProfData.inc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfData.inc?rev=269464&r1=269463&r2=269464&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfData.inc (original)
+++ compiler-rt/trunk/lib/profile/InstrProfData.inc Fri May 13 15:01:38 2016
@@ -295,16 +295,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);
More information about the llvm-commits
mailing list