diff options
author | Mingming Liu <mingmingl@google.com> | 2024-02-07 20:03:44 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-07 20:03:44 -0800 |
commit | 05091aa3ac53a13d08c78882c0c2035e58a1b4c4 (patch) | |
tree | e1874996ddf2aa94d853812ab87a69cd3e12b934 /llvm/tools | |
parent | d01864eb2f21d56cf432da7d80c505f510533c46 (diff) | |
download | llvm-05091aa3ac53a13d08c78882c0c2035e58a1b4c4.zip llvm-05091aa3ac53a13d08c78882c0c2035e58a1b4c4.tar.gz llvm-05091aa3ac53a13d08c78882c0c2035e58a1b4c4.tar.bz2 |
[NFC][InstrProf]Generalize getParsedIRPGOFuncName to getParsedIRPGOName (#81054)
- Function getParsedIRPGOFuncName splits name by delimiter. The `[filename;]mangled-name` format could be generalized for non-function global values (e.g., vtables for type profiling). So rename the
function.
- Use kGlobalIdentifierDelimiter rather than semicolon directly for defragmentation.
Diffstat (limited to 'llvm/tools')
-rw-r--r-- | llvm/tools/llvm-profdata/llvm-profdata.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-profdata/llvm-profdata.cpp b/llvm/tools/llvm-profdata/llvm-profdata.cpp index 7754ca3..577a882 100644 --- a/llvm/tools/llvm-profdata/llvm-profdata.cpp +++ b/llvm/tools/llvm-profdata/llvm-profdata.cpp @@ -3231,7 +3231,7 @@ static int order_main(int argc, const char *argv[]) { "-order_file.\n"; for (auto &N : Nodes) { auto [Filename, ParsedFuncName] = - getParsedIRPGOFuncName(Reader->getSymtab().getFuncOrVarName(N.Id)); + getParsedIRPGOName(Reader->getSymtab().getFuncOrVarName(N.Id)); if (!Filename.empty()) OS << "# " << Filename << "\n"; OS << ParsedFuncName << "\n"; |