Make getNumContainedManagers and getNumContainedPasses const.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51087 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2008-05-14 00:40:34 +00:00
parent 79fc2020ce
commit 5d9bac6d8d

View File

@ -145,7 +145,7 @@ private:
class PMTopLevelManager {
public:
virtual unsigned getNumContainedManagers() {
virtual unsigned getNumContainedManagers() const {
return (unsigned)PassManagers.size();
}
@ -305,7 +305,7 @@ public:
void dumpAnalysisSetInfo(const char *Msg, Pass *P,
const std::vector<AnalysisID> &Set) const;
virtual unsigned getNumContainedPasses() {
virtual unsigned getNumContainedPasses() const {
return (unsigned)PassVector.size();
}