forked from OSchip/llvm-project
[lldb] Avoid format string in LLDB_SCOPED_TIMER
Pass LLVM_PRETTY_FUNCTION directly for the no-argument macro.
This commit is contained in:
parent
d35fe04fa3
commit
bbcb3433d4
|
@ -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__)
|
||||
|
|
Loading…
Reference in New Issue