[llvm-branch-commits] [BOLT] Support perf2bolt-N in the driver (PR #111072)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Oct 3 15:57:25 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-bolt
Author: Amir Ayupov (aaupov)
<details>
<summary>Changes</summary>
Check invoked tool with `starts_with`
---
Full diff: https://github.com/llvm/llvm-project/pull/111072.diff
1 Files Affected:
- (modified) bolt/tools/driver/llvm-bolt.cpp (+2-2)
``````````diff
diff --git a/bolt/tools/driver/llvm-bolt.cpp b/bolt/tools/driver/llvm-bolt.cpp
index 9b03524e9f18e8..a8d1ac64808930 100644
--- a/bolt/tools/driver/llvm-bolt.cpp
+++ b/bolt/tools/driver/llvm-bolt.cpp
@@ -202,9 +202,9 @@ int main(int argc, char **argv) {
ToolName = argv[0];
- if (llvm::sys::path::filename(ToolName) == "perf2bolt")
+ if (llvm::sys::path::filename(ToolName).starts_with("perf2bolt"))
perf2boltMode(argc, argv);
- else if (llvm::sys::path::filename(ToolName) == "llvm-boltdiff")
+ else if (llvm::sys::path::filename(ToolName).starts_with("llvm-boltdiff"))
boltDiffMode(argc, argv);
else
boltMode(argc, argv);
``````````
</details>
https://github.com/llvm/llvm-project/pull/111072
More information about the llvm-branch-commits
mailing list