[Support] Untie the llvm::Signpost interface from llvm::Timer
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 6 Jan 2021 22:35:07 +0000 (14:35 -0800)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 6 Jan 2021 23:16:09 +0000 (15:16 -0800)
commitb37de2afa30fe4312aa9b87b11208bd7e05c8fa1
treea277cbc27d8cea4ceffe7713510ad96bb4d7eb02
parent080943f7525f277579a000cf30364cc96fba6773
[Support] Untie the llvm::Signpost interface from llvm::Timer

Make llvm::Signpost more generic by untying from llvm::Timer. This
allows signposts to be used in a different context.

My motivation for doing this is being able to use signposts in LLDB.

Differential revision: https://reviews.llvm.org/D93655
llvm/include/llvm/Support/Signposts.h
llvm/lib/Support/Signposts.cpp
llvm/lib/Support/Timer.cpp