From 72ca5f36944ee01566ca1a42083e52315ea4264a Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Mon, 26 Aug 2019 08:22:52 +0000 Subject: [lldb][NFC] Add ProcessInfo::GetNameAsStringRef to simplify some code llvm-svn: 369880 --- lldb/source/Commands/CommandObjectPlatform.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lldb/source/Commands/CommandObjectPlatform.cpp') diff --git a/lldb/source/Commands/CommandObjectPlatform.cpp b/lldb/source/Commands/CommandObjectPlatform.cpp index 43a06310738..0bd12d18283 100644 --- a/lldb/source/Commands/CommandObjectPlatform.cpp +++ b/lldb/source/Commands/CommandObjectPlatform.cpp @@ -1467,9 +1467,7 @@ public: return; for (uint32_t i = 0; i < num_matches; ++i) { - request.AddCompletion( - llvm::StringRef(process_infos.GetProcessNameAtIndex(i), - process_infos.GetProcessNameLengthAtIndex(i))); + request.AddCompletion(process_infos.GetProcessNameAtIndex(i)); } return; } -- cgit v1.2.3