diff options
author | Tobias Grosser <grosser@fim.uni-passau.de> | 2011-01-20 21:03:20 +0000 |
---|---|---|
committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2011-01-20 21:03:20 +0000 |
commit | 5839614d977a18a3eef4e03b8aae6d2e12ecb2c7 (patch) | |
tree | 29c9c2a4f7d5bdeea43b99a709e8e89b71ee1913 /tools/opt/opt.cpp | |
parent | 1115c472038b19dfcc3ff44b8bf6711ebcfc3dc4 (diff) | |
download | external_llvm-5839614d977a18a3eef4e03b8aae6d2e12ecb2c7.zip external_llvm-5839614d977a18a3eef4e03b8aae6d2e12ecb2c7.tar.gz external_llvm-5839614d977a18a3eef4e03b8aae6d2e12ecb2c7.tar.bz2 |
RegionPassPrinter should contain the name of the pass printed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123941 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt/opt.cpp')
-rw-r--r-- | tools/opt/opt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 85d3653..ff8f65c 100644 --- a/tools/opt/opt.cpp +++ b/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()); |