[llvm] Revert "[Passes] Expose parseSinglePassOption" (PR #86225)

via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 21 17:56:54 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 3e4caa9da4356247444e973eb470a25adae083b0 012438a2760b5bf89daa7e9b18848510f514d09c -- llvm/include/llvm/Passes/PassBuilder.h llvm/lib/Passes/PassBuilder.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Passes/PassBuilder.cpp b/llvm/lib/Passes/PassBuilder.cpp
index 9d98ae7dde..4b1db18b54 100644
--- a/llvm/lib/Passes/PassBuilder.cpp
+++ b/llvm/lib/Passes/PassBuilder.cpp
@@ -620,7 +620,8 @@ Expected<bool> parseSinglePassOption(StringRef Params, StringRef OptionName,
 }
 
 Expected<bool> parseGlobalDCEPassOptions(StringRef Params) {
-  return parseSinglePassOption(Params, "vfe-linkage-unit-visibility", "GlobalDCE");
+  return parseSinglePassOption(Params, "vfe-linkage-unit-visibility",
+                               "GlobalDCE");
 }
 
 Expected<bool> parseCGProfilePassOptions(StringRef Params) {
@@ -1062,8 +1063,7 @@ Expected<std::string> parseMemProfUsePassOptions(StringRef Params) {
 }
 
 Expected<bool> parseStructuralHashPrinterPassOptions(StringRef Params) {
-  return parseSinglePassOption(Params, "detailed",
-                               "StructuralHashPrinterPass");
+  return parseSinglePassOption(Params, "detailed", "StructuralHashPrinterPass");
 }
 
 Expected<bool> parseWinEHPrepareOptions(StringRef Params) {

``````````

</details>


https://github.com/llvm/llvm-project/pull/86225


More information about the llvm-commits mailing list