summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2011-01-20 21:03:20 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2011-01-20 21:03:20 +0000
commit7dbb48244f0880312530d1bc7451199d00f2c135 (patch)
tree25341ae45a3f67fbd538f6020402cdf00872091e
parent18f4a755a396f841fe85819befbfabe67bac4823 (diff)
downloadbcm5719-llvm-7dbb48244f0880312530d1bc7451199d00f2c135.tar.gz
bcm5719-llvm-7dbb48244f0880312530d1bc7451199d00f2c135.zip
RegionPassPrinter should contain the name of the pass printed
llvm-svn: 123941
-rw-r--r--llvm/tools/opt/opt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp
index 85d365306a2..ff8f65cfff7 100644
--- a/llvm/tools/opt/opt.cpp
+++ b/llvm/tools/opt/opt.cpp
@@ -282,7 +282,7 @@ struct RegionPassPrinter : public RegionPass {
RegionPassPrinter(const PassInfo *PI, raw_ostream &out) : RegionPass(ID),
PassToPrint(PI), Out(out) {
std::string PassToPrintName = PassToPrint->getPassName();
- PassName = "LoopPass Printer: " + PassToPrintName;
+ PassName = "RegionPass Printer: " + PassToPrintName;
}
virtual bool runOnRegion(Region *R, RGPassManager &RGM) {
@@ -297,7 +297,7 @@ struct RegionPassPrinter : public RegionPass {
return false;
}
- virtual const char *getPassName() const { return "'Pass' Printer"; }
+ virtual const char *getPassName() const { return PassName.c_str(); }
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequiredID(PassToPrint->getTypeInfo());
OpenPOWER on IntegriCloud