Skip to content

Commit 3ef0f44

Browse files
committedJan 9, 2019
refactor BlockFrequencyInfo::view to take a title parameter
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 llvm-svn: 350749
1 parent 6c6fb80 commit 3ef0f44

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎llvm/include/llvm/Analysis/BlockFrequencyInfo.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class BlockFrequencyInfo {
5656

5757
const Function *getFunction() const;
5858
const BranchProbabilityInfo *getBPI() const;
59-
void view() const;
59+
void view(StringRef = "BlockFrequencyDAGs") const;
6060

6161
/// getblockFreq - Return block frequency. Return 0 if we don't have the
6262
/// information. Please note that initial frequency is equal to ENTRY_FREQ. It

‎llvm/lib/Analysis/BlockFrequencyInfo.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ void BlockFrequencyInfo::setBlockFreqAndScale(
252252

253253
/// Pop up a ghostview window with the current block frequency propagation
254254
/// rendered using dot.
255-
void BlockFrequencyInfo::view() const {
256-
ViewGraph(const_cast<BlockFrequencyInfo *>(this), "BlockFrequencyDAGs");
255+
void BlockFrequencyInfo::view(StringRef title) const {
256+
ViewGraph(const_cast<BlockFrequencyInfo *>(this), title);
257257
}
258258

259259
const Function *BlockFrequencyInfo::getFunction() const {

0 commit comments

Comments
 (0)