diff options
author | Pavel Labath <pavel@labath.sk> | 2021-10-21 21:00:33 +0200 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2021-10-26 10:04:35 +0200 |
commit | a458ef4f732b27312d8a5d20d2843d8bff35daeb (patch) | |
tree | 89e541ecacd4e0a7c975b7881ecd3b45ca9580f8 /lldb/source/Commands/CommandObjectPlatform.cpp | |
parent | b69564d94d90b83ccdcc501f811959c23aeec52a (diff) | |
download | llvm-a458ef4f732b27312d8a5d20d2843d8bff35daeb.zip llvm-a458ef4f732b27312d8a5d20d2843d8bff35daeb.tar.gz llvm-a458ef4f732b27312d8a5d20d2843d8bff35daeb.tar.bz2 |
[lldb] Remove ConstString from Platform plugin names
Diffstat (limited to 'lldb/source/Commands/CommandObjectPlatform.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectPlatform.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lldb/source/Commands/CommandObjectPlatform.cpp b/lldb/source/Commands/CommandObjectPlatform.cpp index 188d853..10dd878 100644 --- a/lldb/source/Commands/CommandObjectPlatform.cpp +++ b/lldb/source/Commands/CommandObjectPlatform.cpp @@ -216,15 +216,13 @@ protected: uint32_t idx; for (idx = 0; true; ++idx) { - const char *plugin_name = + llvm::StringRef plugin_name = PluginManager::GetPlatformPluginNameAtIndex(idx); - if (plugin_name == nullptr) + if (plugin_name.empty()) break; - const char *plugin_desc = + llvm::StringRef plugin_desc = PluginManager::GetPlatformPluginDescriptionAtIndex(idx); - if (plugin_desc == nullptr) - break; - ostrm.Printf("%s: %s\n", plugin_name, plugin_desc); + ostrm.Format("{0}: {1}\n", plugin_name, plugin_desc); } if (idx == 0) { |