From e59eaf407a675845e278c2769e3dbed9f1daae8c Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 13 Sep 2004 23:44:23 +0000 Subject: 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 --- lib/VMCore/Module.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/VMCore/Module.cpp') diff --git a/lib/VMCore/Module.cpp b/lib/VMCore/Module.cpp index d8caf7f..1dae14e 100644 --- a/lib/VMCore/Module.cpp +++ b/lib/VMCore/Module.cpp @@ -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. -- cgit v1.1