[PATCH] D135658: demangle OptFunction trace names
Nico Weber via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 11 07:32:55 PDT 2022
thakis added a comment.
Is it possible to test this?
================
Comment at: llvm/lib/IR/LegacyPassManager.cpp:1412
- llvm::TimeTraceScope FunctionScope("OptFunction", F.getName());
+ llvm::TimeTraceScope FunctionScope("OptFunction", [&]() {
+ return demangle(F.getName().str());
----------------
Please use a named capture list instead of `[&}`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135658/new/
https://reviews.llvm.org/D135658
More information about the llvm-commits
mailing list