aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Signposts.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2021-04-08 16:36:42 -0700
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2021-04-08 16:38:47 -0700
commit078072285d3fbdaa94f9a91140eb5c1223b548af (patch)
tree74cb0393435de5e649d3fe1afcfcf6eebdf70c34 /llvm/lib/Support/Signposts.cpp
parent9be43874343b0aa2221497830d0356eb4b7eecfa (diff)
downloadllvm-078072285d3fbdaa94f9a91140eb5c1223b548af.zip
llvm-078072285d3fbdaa94f9a91140eb5c1223b548af.tar.gz
llvm-078072285d3fbdaa94f9a91140eb5c1223b548af.tar.bz2
Revert "Support: Use std::unique_ptr for SignpostEmitter::Impl, NFC"
This reverts commit 022ccedde8877e877b45e49641544b5e4fff0b42. Looks like some hosts need a definition of SignpostEmitterImpl to put it in a unique_ptr: https://lab.llvm.org/buildbot/#/builders/92/builds/7733
Diffstat (limited to 'llvm/lib/Support/Signposts.cpp')
-rw-r--r--llvm/lib/Support/Signposts.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/llvm/lib/Support/Signposts.cpp b/llvm/lib/Support/Signposts.cpp
index 586f1db..b277bb0 100644
--- a/llvm/lib/Support/Signposts.cpp
+++ b/llvm/lib/Support/Signposts.cpp
@@ -100,11 +100,17 @@ public:
SignpostEmitter::SignpostEmitter() {
#if HAVE_ANY_SIGNPOST_IMPL
- Impl = std::make_unique<SignpostEmitterImpl>();
+ Impl = new SignpostEmitterImpl();
+#else // if HAVE_ANY_SIGNPOST_IMPL
+ Impl = nullptr;
#endif // if !HAVE_ANY_SIGNPOST_IMPL
}
-SignpostEmitter::~SignpostEmitter() = default;
+SignpostEmitter::~SignpostEmitter() {
+#if HAVE_ANY_SIGNPOST_IMPL
+ delete Impl;
+#endif // if HAVE_ANY_SIGNPOST_IMPL
+}
bool SignpostEmitter::isEnabled() const {
#if HAVE_ANY_SIGNPOST_IMPL