summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-08-16 22:45:12 +0000
committerDan Gohman <gohman@apple.com>2010-08-16 22:45:12 +0000
commit65bffec2c2dc87a5974930ec17931721bc485f9a (patch)
tree4d64f4bd493e167f799d0c6a12e5d3ff110ebf7c /include
parent4861ed60ac68a543d1b88e631e9fe2c55583b24b (diff)
downloadllvm-65bffec2c2dc87a5974930ec17931721bc485f9a.tar.gz
llvm-65bffec2c2dc87a5974930ec17931721bc485f9a.tar.bz2
llvm-65bffec2c2dc87a5974930ec17931721bc485f9a.tar.xz
Make dumpPassStructure be a PMDataManager abstraction, rather than
a Pass abstraction, since that's the level it's actually used at. Rename Pass' dumpPassStructure to dumpPass. This eliminates an awkward use of getAsPass() to convert a PMDataManager* into a Pass* just to permit a dumpPassStructure call. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111199 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Pass.h2
-rw-r--r--include/llvm/PassManagers.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h
index f4c6eed2cf..9f4e963343 100644
--- a/include/llvm/Pass.h
+++ b/include/llvm/Pass.h
@@ -163,7 +163,7 @@ public:
virtual void verifyAnalysis() const;
// dumpPassStructure - Implement the -debug-passes=PassStructure option
- virtual void dumpPassStructure(unsigned Offset = 0);
+ void dumpPass(unsigned Offset = 0);
// lookupPassInfo - Return the pass info object for the specified pass class,
// or null if it is not known.
diff --git a/include/llvm/PassManagers.h b/include/llvm/PassManagers.h
index 17f4a0592f..e324184207 100644
--- a/include/llvm/PassManagers.h
+++ b/include/llvm/PassManagers.h
@@ -362,6 +362,9 @@ public:
InheritedAnalysis[Index++] = (*I)->getAvailableAnalysis();
}
+ /// dumpPassStructure - Implement the -debug-passes=PassStructure option.
+ virtual void dumpPassStructure(unsigned Offset) = 0;
+
protected:
// Top level manager.