diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-08-26 08:22:52 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-08-26 08:22:52 +0000 |
commit | 72ca5f36944ee01566ca1a42083e52315ea4264a (patch) | |
tree | 1671b1bf8e701ca88004d4941f4283f7dab68b1b /lldb/source/Commands/CommandObjectPlatform.cpp | |
parent | 8e5184af71124be3ed7f53f4a25d5ea7742aa3c2 (diff) | |
download | bcm5719-llvm-72ca5f36944ee01566ca1a42083e52315ea4264a.tar.gz bcm5719-llvm-72ca5f36944ee01566ca1a42083e52315ea4264a.zip |
[lldb][NFC] Add ProcessInfo::GetNameAsStringRef to simplify some code
llvm-svn: 369880
Diffstat (limited to 'lldb/source/Commands/CommandObjectPlatform.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectPlatform.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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; } |