Make getPassManagerType() const.

llvm-svn: 34669
This commit is contained in:
Devang Patel 2007-02-27 15:00:39 +00:00
parent b524dfd557
commit 28349abeab
4 changed files with 8 additions and 6 deletions

View File

@ -81,7 +81,7 @@ public:
return FP;
}
virtual PassManagerType getPassManagerType() {
virtual PassManagerType getPassManagerType() const {
return PMT_LoopPassManager;
}

View File

@ -250,7 +250,7 @@ public:
return PassVector.size();
}
virtual PassManagerType getPassManagerType() {
virtual PassManagerType getPassManagerType() const {
assert ( 0 && "Invalid use of getPassManagerType");
return PMT_Unknown;
}
@ -322,7 +322,7 @@ public:
return FP;
}
virtual PassManagerType getPassManagerType() {
virtual PassManagerType getPassManagerType() const {
return PMT_FunctionPassManager;
}
};

View File

@ -66,7 +66,7 @@ public:
return FP;
}
virtual PassManagerType getPassManagerType() {
virtual PassManagerType getPassManagerType() const {
return PMT_CallGraphPassManager;
}
};

View File

@ -98,7 +98,7 @@ public:
return BP;
}
virtual PassManagerType getPassManagerType() {
virtual PassManagerType getPassManagerType() const {
return PMT_BasicBlockPassManager;
}
};
@ -210,7 +210,9 @@ public:
return MP;
}
virtual PassManagerType getPassManagerType() { return PMT_ModulePassManager; }
virtual PassManagerType getPassManagerType() const {
return PMT_ModulePassManager;
}
};
//===----------------------------------------------------------------------===//