[PATCH] D19903: [ProfileData] (compiler-rt) Use Error in InstrProf and Coverage
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Tue May 3 23:54:24 PDT 2016
vsk created this revision.
vsk added reviewers: davidxl, xur.
vsk added a subscriber: llvm-commits.
vsk added a dependency: D19901: [ProfileData] (llvm) Use Error in InstrProf and Coverage.
Sync up with "(llvm) Use Error in InstrProf and Coverage".
Depends on D19901.
http://reviews.llvm.org/D19903
Files:
lib/profile/InstrProfData.inc
Index: lib/profile/InstrProfData.inc
===================================================================
--- lib/profile/InstrProfData.inc
+++ lib/profile/InstrProfData.inc
@@ -297,16 +297,15 @@
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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19903.56099.patch
Type: text/x-patch
Size: 1024 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160504/bdcc5daa/attachment.bin>
More information about the llvm-commits
mailing list