Revert "[lldb] Remove the global platform list"

It makes module dependencies loopier.

This reverts commits 49cffe3c7fab74252d4b6a073303c803dc1659f0 and
ffb9429b6f3c29ab4687b96fd85374924c98ad16.
This commit is contained in:
Pavel Labath
2022-03-09 18:12:28 +01:00
parent 28f67aed9d
commit d65e6ff2f1
18 changed files with 191 additions and 295 deletions

View File

@@ -293,7 +293,9 @@ SBPlatform::SBPlatform() { LLDB_INSTRUMENT_VA(this); }
SBPlatform::SBPlatform(const char *platform_name) {
LLDB_INSTRUMENT_VA(this, platform_name);
m_opaque_sp = Platform::Create(platform_name);
Status error;
if (platform_name && platform_name[0])
m_opaque_sp = Platform::Create(ConstString(platform_name), error);
}
SBPlatform::SBPlatform(const SBPlatform &rhs) {