Skip to content

Commit

Permalink
refactor BlockFrequencyInfo::view to take a title parameter
Browse files Browse the repository at this point in the history
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
  • Loading branch information
DavidCallahan committed Jan 9, 2019
1 parent 6c6fb80 commit 3ef0f44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion llvm/include/llvm/Analysis/BlockFrequencyInfo.h
Expand Up @@ -56,7 +56,7 @@ class BlockFrequencyInfo {

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
Expand Down
4 changes: 2 additions & 2 deletions llvm/lib/Analysis/BlockFrequencyInfo.cpp
Expand Up @@ -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 {
Expand Down

0 comments on commit 3ef0f44

Please sign in to comment.