mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 14:48:27 +08:00
Revert "[lldb] Avoid format string in LLDB_SCOPED_TIMER"
Right after pushing, I remembered that this was added to silence a GCC warning (https://reviews.llvm.org/D99120). This reverts my patch and adds a comment.
This commit is contained in:
@@ -74,9 +74,11 @@ private:
|
||||
|
||||
} // namespace lldb_private
|
||||
|
||||
// Use a format string because LLVM_PRETTY_FUNCTION might not be a string
|
||||
// literal.
|
||||
#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__)
|
||||
|
||||
Reference in New Issue
Block a user