mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
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
This commit is contained in:
parent
91283eb602
commit
cd641e1e98
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user