projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75c3d6f
)
[lldb/Host] Pass a StringRef to the FileSpec ctor
author
Jonas Devlieghere
<jonas@devlieghere.com>
Wed, 29 Apr 2020 02:21:27 +0000
(19:21 -0700)
committer
Jonas Devlieghere
<jonas@devlieghere.com>
Wed, 29 Apr 2020 02:21:58 +0000
(19:21 -0700)
The FileSpec constructor takes a StringRef so there's no point in going
through a C string.
lldb/source/Host/common/Host.cpp
patch
|
blob
|
history
diff --git
a/lldb/source/Host/common/Host.cpp
b/lldb/source/Host/common/Host.cpp
index 8a6af3881a0fdc43c619df5ebe523418adb9805a..a5705c92afecf781d2ce6ac38950c7068d49f403 100644
(file)
--- a/
lldb/source/Host/common/Host.cpp
+++ b/
lldb/source/Host/common/Host.cpp
@@
-521,7
+521,7
@@
Status Host::RunShellCommand(const Args &args, const FileSpec &working_dir,
}
}
- FileSpec output_file_spec(output_file_path.
c_
str());
+ FileSpec output_file_spec(output_file_path.str());
// Set up file descriptors.
launch_info.AppendSuppressFileAction(STDIN_FILENO, true, false);
if (output_file_spec)