[llvm-branch-commits] [llvm] [BOLT] Match blocks with calls as anchors (PR #96596)
Amir Ayupov via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Jul 10 14:05:20 PDT 2024
================
@@ -63,8 +63,8 @@ class NameResolver {
}
// Removes a suffix from a function name.
- static StringRef removeSuffix(StringRef Name, StringRef Suffix) {
- const size_t Pos = Name.find(Suffix);
+ static StringRef unify(StringRef Name) {
----------------
aaupov wrote:
Let's use a self-descriptive name e.g. `dropNumNames`.
This would follow the convention used in BinaryFunction.h `getPrintName`.
https://github.com/llvm/llvm-project/pull/96596
More information about the llvm-branch-commits
mailing list