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/CommandObjectProcess.cpp | |
parent | 8e5184af71124be3ed7f53f4a25d5ea7742aa3c2 (diff) | |
download | llvm-72ca5f36944ee01566ca1a42083e52315ea4264a.zip llvm-72ca5f36944ee01566ca1a42083e52315ea4264a.tar.gz llvm-72ca5f36944ee01566ca1a42083e52315ea4264a.tar.bz2 |
[lldb][NFC] Add ProcessInfo::GetNameAsStringRef to simplify some code
llvm-svn: 369880
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectProcess.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp index f478866..e934b7c 100644 --- a/lldb/source/Commands/CommandObjectProcess.cpp +++ b/lldb/source/Commands/CommandObjectProcess.cpp @@ -353,9 +353,7 @@ public: if (num_matches == 0) return; for (size_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)); } } |