[llvm] [BOLT] Use symbol table info in registerFragment (PR #89648)
Maksim Panchenko via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 22 19:51:50 PDT 2024
================
@@ -28,10 +28,23 @@ class NameResolver {
static constexpr char Sep = '/';
public:
+ /// Return the counter for a given \p Name.
+ uint64_t getCounter(StringRef Name) const {
+ if (Counters.contains(Name))
+ return Counters.at(Name);
+ return 0;
+ }
+
/// Return unique version of the \p Name in the form "Name<Sep><Number>".
+ std::string getUniqueName(StringRef Name, const uint64_t ID) const {
----------------
maksfb wrote:
Update the commend above with `ID`.
https://github.com/llvm/llvm-project/pull/89648
More information about the llvm-commits
mailing list