summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/LevelRaise.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-29 14:57:45 +0000
committerChris Lattner <sabre@nondot.org>2002-04-29 14:57:45 +0000
commit37104aace8a7f5ed8e11e905aeaf579b526e3b8e (patch)
treec6f7dcb73419953abda386a20b175d1f83f2b050 /llvm/lib/Transforms/LevelRaise.cpp
parente2eb99eb6215eb1d3dc78b1e20192ca6221d7d5f (diff)
downloadbcm5719-llvm-37104aace8a7f5ed8e11e905aeaf579b526e3b8e.tar.gz
bcm5719-llvm-37104aace8a7f5ed8e11e905aeaf579b526e3b8e.zip
Add new optional getPassName() virtual function that a Pass can override
to make debugging output a lot nicer. llvm-svn: 2395
Diffstat (limited to 'llvm/lib/Transforms/LevelRaise.cpp')
-rw-r--r--llvm/lib/Transforms/LevelRaise.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/LevelRaise.cpp b/llvm/lib/Transforms/LevelRaise.cpp
index 07981d0aa36..f9f9abeace9 100644
--- a/llvm/lib/Transforms/LevelRaise.cpp
+++ b/llvm/lib/Transforms/LevelRaise.cpp
@@ -471,6 +471,8 @@ static bool doRPR(Function *F) {
namespace {
struct RaisePointerReferences : public FunctionPass {
+ const char *getPassName() const { return "Raise Pointer References"; }
+
virtual bool runOnFunction(Function *F) { return doRPR(F); }
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
OpenPOWER on IntegriCloud