[PATCH] D38666: Add constructor with cl::Option argument for FilteredPassNameParser
Nikita Kataev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 7 07:00:00 PDT 2017
kaniandr created this revision.
This fixes problem when using FilteredPassNameParser. It inherits PassNameParser which has no default constructor. However, PassNameParser has constructor with one argument (cl::Option) which can be used.
https://reviews.llvm.org/D38666
Files:
include/llvm/IR/LegacyPassNameParser.h
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);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38666.118135.patch
Type: text/x-patch
Size: 407 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171007/ecde1983/attachment.bin>
More information about the llvm-commits
mailing list