mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-20 10:24:12 +00:00
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:
@ -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.
|
||||
|
Reference in New Issue
Block a user