projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add inline stack streaming to binary sample profiles.
[oota-llvm.git]
/
include
/
llvm
/
ProfileData
/
SampleProfReader.h
diff --git
a/include/llvm/ProfileData/SampleProfReader.h
b/include/llvm/ProfileData/SampleProfReader.h
index 9f4d53902e1c4e1687c1f418f944321423448352..e2976e2efab75a7db3bb354ce3ad9598bb68def1 100644
(file)
--- 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; }
/// \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;
/// \brief Points to the current location in the buffer.
const uint8_t *Data;