Add support for the link-time pass list to Modules.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16321 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer
2004-09-13 23:44:23 +00:00
parent b9210123a9
commit e59eaf407a
5 changed files with 67 additions and 2 deletions

View File

@ -270,6 +270,12 @@ std::string Module::getTypeName(const Type *Ty) const {
return ""; // Must not have found anything...
}
void Module::removePass(const std::string& Lib) {
PassListType::iterator I = find(PassList.begin(),PassList.end(),Lib);
if (I != PassList.end())
PassList.erase(I);
}
//===----------------------------------------------------------------------===//
// Other module related stuff.