]> granicus.if.org Git - llvm/commitdiff
refactor BlockFrequencyInfo::view to take a title parameter
authorDavid Callahan <dcallahan@fb.com>
Wed, 9 Jan 2019 19:12:38 +0000 (19:12 +0000)
committerDavid Callahan <dcallahan@fb.com>
Wed, 9 Jan 2019 19:12:38 +0000 (19:12 +0000)
Summary: All a non-default title for the debugging this debugging aide

Reviewers: twoh, Kader, modocache

Reviewed By: twoh

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D56499

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350749 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/BlockFrequencyInfo.h
lib/Analysis/BlockFrequencyInfo.cpp

index ca12db6208b8d0866553daa927d7daa62699b593..0b2618735697627719e205483a3c31bd032d32a3 100644 (file)
@@ -56,7 +56,7 @@ public:
 
   const Function *getFunction() const;
   const BranchProbabilityInfo *getBPI() const;
-  void view() const;
+  void view(StringRef = "BlockFrequencyDAGs") const;
 
   /// getblockFreq - Return block frequency. Return 0 if we don't have the
   /// information. Please note that initial frequency is equal to ENTRY_FREQ. It
index 41c2958952139eb47a705b8ec968289fd0af0bba..ef27c36517eac904b15d680cf9ecc79995822505 100644 (file)
@@ -252,8 +252,8 @@ void BlockFrequencyInfo::setBlockFreqAndScale(
 
 /// Pop up a ghostview window with the current block frequency propagation
 /// rendered using dot.
-void BlockFrequencyInfo::view() const {
-  ViewGraph(const_cast<BlockFrequencyInfo *>(this), "BlockFrequencyDAGs");
+void BlockFrequencyInfo::view(StringRef title) const {
+  ViewGraph(const_cast<BlockFrequencyInfo *>(this), title);
 }
 
 const Function *BlockFrequencyInfo::getFunction() const {