Index: include/llvm/IR/LegacyPassNameParser.h =================================================================== --- include/llvm/IR/LegacyPassNameParser.h +++ include/llvm/IR/LegacyPassNameParser.h @@ -105,6 +105,8 @@ Filter filter; public: + FilteredPassNameParser(cl::Option &O) : PassNameParser(O) {} + bool ignorablePassImpl(const PassInfo *P) const override { return !filter(*P); }