[lldb] Avoid format string in LLDB_SCOPED_TIMER

Pass LLVM_PRETTY_FUNCTION directly for the no-argument macro.
This commit is contained in:
Jonas Devlieghere 2021-05-25 17:12:28 -07:00
parent d35fe04fa3
commit bbcb3433d4
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ private:
#define LLDB_SCOPED_TIMER() \
static ::lldb_private::Timer::Category _cat(LLVM_PRETTY_FUNCTION); \
::lldb_private::Timer _scoped_timer(_cat, "%s", LLVM_PRETTY_FUNCTION)
::lldb_private::Timer _scoped_timer(_cat, LLVM_PRETTY_FUNCTION)
#define LLDB_SCOPED_TIMERF(...) \
static ::lldb_private::Timer::Category _cat(LLVM_PRETTY_FUNCTION); \
::lldb_private::Timer _scoped_timer(_cat, __VA_ARGS__)