diff options
| author | Pavel Labath <labath@google.com> | 2018-06-21 15:24:39 +0000 |
|---|---|---|
| committer | Pavel Labath <labath@google.com> | 2018-06-21 15:24:39 +0000 |
| commit | a174bcbf033da7392b8c2c96c381d45f09a9810f (patch) | |
| tree | 0c7f690c4a6d44253fb9974539046b57325415df /lldb/source/Plugins | |
| parent | bb9dedfa8a5205d512e71ae462e77ba4e482e8d4 (diff) | |
| download | bcm5719-llvm-a174bcbf033da7392b8c2c96c381d45f09a9810f.tar.gz bcm5719-llvm-a174bcbf033da7392b8c2c96c381d45f09a9810f.zip | |
Remove UUID::SetFromCString
Replace uses with SetFromStringRef. NFC.
llvm-svn: 335246
Diffstat (limited to 'lldb/source/Plugins')
4 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOS.cpp b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOS.cpp index 8178b5b155d..4a8ad38d178 100644 --- a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOS.cpp +++ b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOS.cpp @@ -484,7 +484,7 @@ bool DynamicLoaderMacOS::GetSharedCacheInformation( std::string uuid_str = info_dict->GetValueForKey("shared_cache_uuid")->GetStringValue(); if (!uuid_str.empty()) - uuid.SetFromCString(uuid_str.c_str()); + uuid.SetFromStringRef(uuid_str); if (info_dict->GetValueForKey("no_shared_cache")->GetBooleanValue() == false) using_shared_cache = eLazyBoolYes; diff --git a/lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp b/lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp index d36f64a4903..116155d9a23 100644 --- a/lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp +++ b/lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp @@ -456,7 +456,7 @@ lldb_private::UUID CommunicationKDP::GetUUID() { if (uuid_str.size() < 32) return uuid; - if (uuid.SetFromCString(uuid_str.c_str()) == 0) { + if (uuid.SetFromStringRef(uuid_str) == 0) { UUID invalid_uuid; return invalid_uuid; } diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp index 319fa654323..c8b59d5d236 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp @@ -3541,7 +3541,7 @@ bool GDBRemoteCommunicationClient::GetModuleInfo( StringExtractor extractor(value); std::string uuid; extractor.GetHexByteString(uuid); - module_spec.GetUUID().SetFromCString(uuid.c_str(), uuid.size() / 2); + module_spec.GetUUID().SetFromStringRef(uuid, uuid.size() / 2); } else if (name == "triple") { StringExtractor extractor(value); std::string triple; diff --git a/lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp b/lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp index 54c05ca2d87..bfa35ed506a 100644 --- a/lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp +++ b/lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp @@ -314,7 +314,7 @@ Status ProcessMachCore::DoLoadCore() { if (corefile_identifier.find("UUID=") != std::string::npos) { size_t p = corefile_identifier.find("UUID=") + strlen("UUID="); std::string uuid_str = corefile_identifier.substr(p, 36); - uuid.SetFromCString(uuid_str.c_str()); + uuid.SetFromStringRef(uuid_str); } if (corefile_identifier.find("stext=") != std::string::npos) { size_t p = corefile_identifier.find("stext=") + strlen("stext="); |

