1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

RegionPassPrinter should contain the name of the pass printed

llvm-svn: 123941
This commit is contained in:
Tobias Grosser 2011-01-20 21:03:20 +00:00
parent dc3853d7b5
commit 20de2f52d0

View File

@ -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());