Author: Raphael Isemann Date: 2021-10-14T21:36:46+02:00 New Revision: 482c53fa0dce16c0edebb494117dcc8dd383427e
URL: https://github.com/llvm/llvm-project/commit/482c53fa0dce16c0edebb494117dcc8dd383427e DIFF: https://github.com/llvm/llvm-project/commit/482c53fa0dce16c0edebb494117dcc8dd383427e.diff LOG: [lldb] Move ~Platform to source file The called destructors of the members require the includes that are only in the source file. Added: Modified: lldb/include/lldb/Target/Platform.h lldb/source/Target/Platform.cpp Removed: ################################################################################ diff --git a/lldb/include/lldb/Target/Platform.h b/lldb/include/lldb/Target/Platform.h index 81858bbfa702..7cb534afe6ec 100644 --- a/lldb/include/lldb/Target/Platform.h +++ b/lldb/include/lldb/Target/Platform.h @@ -75,7 +75,7 @@ class Platform : public PluginInterface { /// The destructor is virtual since this class is designed to be inherited /// from by the plug-in instance. - ~Platform() override = default; + ~Platform() override; static void Initialize(); diff --git a/lldb/source/Target/Platform.cpp b/lldb/source/Target/Platform.cpp index a414bc746083..07cbc119740a 100644 --- a/lldb/source/Target/Platform.cpp +++ b/lldb/source/Target/Platform.cpp @@ -395,6 +395,8 @@ Platform::Platform(bool is_host) LLDB_LOGF(log, "%p Platform::Platform()", static_cast<void *>(this)); } +Platform::~Platform() = default; + void Platform::GetStatus(Stream &strm) { std::string s; strm.Printf(" Platform: %s\n", GetPluginName().GetCString()); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits