forked from OSchip/llvm-project
				
			Reapply^2 "[ProfileData] (compiler-rt) Use Error in InstrProf and Coverage, NFC"
Sync up with "(llvm) Use Error in InstrProf and Coverage". Differential Revision: http://reviews.llvm.org/D19903 llvm-svn: 269696
This commit is contained in:
		
							parent
							
								
									3354e2c5fe
								
							
						
					
					
						commit
						cd5efa593b
					
				| 
						 | 
					@ -322,16 +322,15 @@ typedef struct ValueProfData {
 | 
				
			||||||
  static std::unique_ptr<ValueProfData>
 | 
					  static std::unique_ptr<ValueProfData>
 | 
				
			||||||
  serializeFrom(const InstrProfRecord &Record);
 | 
					  serializeFrom(const InstrProfRecord &Record);
 | 
				
			||||||
  /*!
 | 
					  /*!
 | 
				
			||||||
   * Check the integrity of the record. Return the error code when
 | 
					   * Check the integrity of the record.
 | 
				
			||||||
   * an error is detected, otherwise return instrprof_error::success.
 | 
					 | 
				
			||||||
   */
 | 
					   */
 | 
				
			||||||
  instrprof_error checkIntegrity();
 | 
					  Error checkIntegrity();
 | 
				
			||||||
  /*!
 | 
					  /*!
 | 
				
			||||||
   * Return a pointer to \c ValueProfileData instance ready to be read.
 | 
					   * Return a pointer to \c ValueProfileData instance ready to be read.
 | 
				
			||||||
   * All data in the instance are properly byte swapped. The input
 | 
					   * All data in the instance are properly byte swapped. The input
 | 
				
			||||||
   * data is assumed to be in little endian order.
 | 
					   * 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,
 | 
					  getValueProfData(const unsigned char *SrcBuffer,
 | 
				
			||||||
                   const unsigned char *const SrcBufferEnd,
 | 
					                   const unsigned char *const SrcBufferEnd,
 | 
				
			||||||
                   support::endianness SrcDataEndianness);
 | 
					                   support::endianness SrcDataEndianness);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue