[llvm] BlockFrequencyInfo: Add PrintBlockFreq helper (PR #67512)

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 27 15:21:11 PDT 2023


================
@@ -533,16 +533,15 @@ class BlockFrequencyInfoImplBase {
 
   void setBlockFreq(const BlockNode &Node, uint64_t Freq);
 
-  raw_ostream &printBlockFreq(raw_ostream &OS, const BlockNode &Node) const;
-  raw_ostream &printBlockFreq(raw_ostream &OS,
-                              const BlockFrequency &Freq) const;
-
   uint64_t getEntryFreq() const {
     assert(!Freqs.empty());
     return Freqs[0].Integer;
   }
 };
 
+void PrintBlockFreqImpl(raw_ostream &OS, uint64_t EntryFreq,
----------------
MatzeB wrote:

> this fct can be const, right?

It's a function, not a class method.

https://github.com/llvm/llvm-project/pull/67512


More information about the llvm-commits mailing list