summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2016-05-19 03:55:20 +0000
committerVedant Kumar <vsk@apple.com>2016-05-19 03:55:20 +0000
commit3afe657030ef3a19cef88206d6d932343057ecb5 (patch)
tree64ebab1feb02a9140b693739971f06055d65906f
parentfa2d595541cf1489af3747cc38c096b2e2cdcc32 (diff)
downloadbcm5719-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.inc7
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);
OpenPOWER on IntegriCloud