[PATCH] D19903: [ProfileData] (compiler-rt) Use Error in InstrProf and Coverage

Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 13 14:57:15 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL269493: Reapply "[ProfileData] (compiler-rt) Use Error in InstrProf and Coverage, NFC" (authored by vedantk).

Changed prior to commit:
  http://reviews.llvm.org/D19903?vs=56099&id=57260#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D19903

Files:
  compiler-rt/trunk/lib/profile/InstrProfData.inc

Index: compiler-rt/trunk/lib/profile/InstrProfData.inc
===================================================================
--- compiler-rt/trunk/lib/profile/InstrProfData.inc
+++ compiler-rt/trunk/lib/profile/InstrProfData.inc
@@ -295,16 +295,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.57260.patch
Type: text/x-patch
Size: 1078 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160513/7fba1f50/attachment.bin>


More information about the llvm-commits mailing list