================ @@ -51,10 +51,59 @@ bool OptBisect::shouldRunPass(const StringRef PassName, int CurBisectNum = ++LastBisectNum; bool ShouldRun = (BisectLimit == -1 || CurBisectNum <= BisectLimit); if (OptBisectVerbose) - printPassMessage(PassName, CurBisectNum, IRDescription, ShouldRun); + printBisectPassMessage(PassName, CurBisectNum, IRDescription, ShouldRun); return ShouldRun; } const int OptBisect::Disabled; -OptPassGate &llvm::getGlobalPassGate() { return getOptBisector(); } +static OptDisable &getOptDisabler() { + static OptDisable OptDisabler; + return OptDisabler; +} + +static cl::opt<std::string> OptDisablePass( ---------------- mtrofin wrote:
I think you can use `cl::list<std::string>` https://github.com/llvm/llvm-project/pull/145059 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits