X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=include%2Fllvm%2FProfileData%2FInstrProf.h;h=8fd3d7f8ffd67116746a69fff3a68a806c3de1ed;hp=3a1226662007fce351f5ec55de80384127fcf408;hb=9bee4a8249abac133d065d9ce0f878af44bed392;hpb=52a156fb302df191b8f6880c4834d0a6703abee4 diff --git a/include/llvm/ProfileData/InstrProf.h b/include/llvm/ProfileData/InstrProf.h index 3a122666200..8fd3d7f8ffd 100644 --- a/include/llvm/ProfileData/InstrProf.h +++ b/include/llvm/ProfileData/InstrProf.h @@ -513,7 +513,8 @@ typedef struct ValueProfData { /// All data in the instance are properly byte swapped. The input /// data is assumed to be in little endian order. static ErrorOr> - getValueProfData(const unsigned char *D, const unsigned char *const BufferEnd, + getValueProfData(const unsigned char *SrcBuffer, + const unsigned char *const SrcBufferEnd, support::endianness SrcDataEndianness); /// Swap byte order from \c Endianness order to host byte order. void swapBytesToHost(support::endianness Endianness); @@ -596,8 +597,8 @@ uint32_t getValueProfDataSizeRT(const ValueProfRuntimeRecord *Record); /* Return a ValueProfData instance that stores the data collected at runtime. */ ValueProfData * -serializeValueProfDataFromRT(const ValueProfRuntimeRecord *Record); - +serializeValueProfDataFromRT(const ValueProfRuntimeRecord *Record, + ValueProfData *Dst); /*! \brief Return the \c ValueProfRecord header size including the * padding bytes.