X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FProfileData%2FSampleProfReader.h;h=e2976e2efab75a7db3bb354ce3ad9598bb68def1;hb=50072bfa3eea84f503699fa0caa166f1be5b1719;hp=9f4d53902e1c4e1687c1f418f944321423448352;hpb=6fd08c8868ad63057e4455150a7be9e4019b2371;p=oota-llvm.git diff --git a/include/llvm/ProfileData/SampleProfReader.h b/include/llvm/ProfileData/SampleProfReader.h index 9f4d53902e1..e2976e2efab 100644 --- a/include/llvm/ProfileData/SampleProfReader.h +++ b/include/llvm/ProfileData/SampleProfReader.h @@ -157,6 +157,9 @@ protected: /// \brief Return true if we've reached the end of file. bool at_eof() const { return Data >= End; } + /// Read the contents of the given profile instance. + std::error_code readProfile(FunctionSamples &FProfile); + /// \brief Points to the current location in the buffer. const uint8_t *Data;