mstorsjo created this revision. mstorsjo added a reviewer: labath. mstorsjo requested review of this revision. Herald added a project: LLDB.
Pass "%s" as the format string literal and LLVM_PRETTY_FUNCTION as argument to it. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D99120 Files: lldb/include/lldb/Utility/Timer.h Index: lldb/include/lldb/Utility/Timer.h =================================================================== --- lldb/include/lldb/Utility/Timer.h +++ lldb/include/lldb/Utility/Timer.h @@ -76,7 +76,7 @@ #define LLDB_SCOPED_TIMER() \ static ::lldb_private::Timer::Category _cat(LLVM_PRETTY_FUNCTION); \ - ::lldb_private::Timer _scoped_timer(_cat, LLVM_PRETTY_FUNCTION) + ::lldb_private::Timer _scoped_timer(_cat, "%s", LLVM_PRETTY_FUNCTION) #define LLDB_SCOPED_TIMERF(...) \ static ::lldb_private::Timer::Category _cat(LLVM_PRETTY_FUNCTION); \ ::lldb_private::Timer _scoped_timer(_cat, __VA_ARGS__)
Index: lldb/include/lldb/Utility/Timer.h =================================================================== --- lldb/include/lldb/Utility/Timer.h +++ lldb/include/lldb/Utility/Timer.h @@ -76,7 +76,7 @@ #define LLDB_SCOPED_TIMER() \ static ::lldb_private::Timer::Category _cat(LLVM_PRETTY_FUNCTION); \ - ::lldb_private::Timer _scoped_timer(_cat, LLVM_PRETTY_FUNCTION) + ::lldb_private::Timer _scoped_timer(_cat, "%s", LLVM_PRETTY_FUNCTION) #define LLDB_SCOPED_TIMERF(...) \ static ::lldb_private::Timer::Category _cat(LLVM_PRETTY_FUNCTION); \ ::lldb_private::Timer _scoped_timer(_cat, __VA_ARGS__)
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits