Index: llvm/trunk/include/llvm/Analysis/BlockFrequencyInfo.h =================================================================== --- llvm/trunk/include/llvm/Analysis/BlockFrequencyInfo.h +++ llvm/trunk/include/llvm/Analysis/BlockFrequencyInfo.h @@ -56,7 +56,7 @@ 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: llvm/trunk/lib/Analysis/BlockFrequencyInfo.cpp =================================================================== --- llvm/trunk/lib/Analysis/BlockFrequencyInfo.cpp +++ llvm/trunk/lib/Analysis/BlockFrequencyInfo.cpp @@ -252,8 +252,8 @@ /// Pop up a ghostview window with the current block frequency propagation /// rendered using dot. -void BlockFrequencyInfo::view() const { - ViewGraph(const_cast(this), "BlockFrequencyDAGs"); +void BlockFrequencyInfo::view(StringRef title) const { + ViewGraph(const_cast(this), title); } const Function *BlockFrequencyInfo::getFunction() const {