================ @@ -1168,9 +1168,19 @@ Expected<std::string> parseMemProfUsePassOptions(StringRef Params) { return Result; } -Expected<bool> parseStructuralHashPrinterPassOptions(StringRef Params) { - return PassBuilder::parseSinglePassOption(Params, "detailed", - "StructuralHashPrinterPass"); +Expected<StructuralHashOptions> +parseStructuralHashPrinterPassOptions(StringRef Params) { + if (Params.empty()) + return StructuralHashOptions::None; + else if (Params == "detailed") + return StructuralHashOptions::Detailed; + else if (Params == "call-target-ignored") + return StructuralHashOptions::CallTargetIgnored; + else ---------------- ellishg wrote:
```suggestion if (Params == "detailed") return StructuralHashOptions::Detailed; if (Params == "call-target-ignored") return StructuralHashOptions::CallTargetIgnored; ``` https://github.com/llvm/llvm-project/pull/112638 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits