diff options
Diffstat (limited to 'bolt/include/bolt/Core/BinaryFunction.h')
-rw-r--r-- | bolt/include/bolt/Core/BinaryFunction.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bolt/include/bolt/Core/BinaryFunction.h b/bolt/include/bolt/Core/BinaryFunction.h index 7a99ce2481a1..a96243c579eb 100644 --- a/bolt/include/bolt/Core/BinaryFunction.h +++ b/bolt/include/bolt/Core/BinaryFunction.h @@ -1794,6 +1794,10 @@ public: /// executions corresponding to this function. uint64_t getRawBranchCount() const { return RawBranchCount; } + /// Set the profile data about the number of branch executions corresponding + /// to this function. + void setRawBranchCount(uint64_t Count) { RawBranchCount = Count; } + /// Return the execution count for functions with known profile. /// Return 0 if the function has no profile. uint64_t getKnownExecutionCount() const { |