diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2018-06-13 22:23:48 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2018-06-13 22:23:48 +0000 |
commit | dd2f78e34cdc5e5cbad8c293b5422c0efe9f5063 (patch) | |
tree | bddedc3f6dc5a752563ba300cab85dbc0679c843 /lldb/source/Host/linux | |
parent | 937348cd1359b30359b958ca81b7e7d8711b443e (diff) | |
download | bcm5719-llvm-dd2f78e34cdc5e5cbad8c293b5422c0efe9f5063.tar.gz bcm5719-llvm-dd2f78e34cdc5e5cbad8c293b5422c0efe9f5063.zip |
[FileSpec] Make style argument mandatory for SetFile. NFC
Fix SetFile uses in hosts that I missed in r334663.
llvm-svn: 334664
Diffstat (limited to 'lldb/source/Host/linux')
-rw-r--r-- | lldb/source/Host/linux/Host.cpp | 3 | ||||
-rw-r--r-- | lldb/source/Host/linux/HostInfoLinux.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Host/linux/Host.cpp b/lldb/source/Host/linux/Host.cpp index ed9a459100c..1a0eb767eb3 100644 --- a/lldb/source/Host/linux/Host.cpp +++ b/lldb/source/Host/linux/Host.cpp @@ -190,7 +190,8 @@ static bool GetProcessAndStatInfo(::pid_t pid, return false; process_info.SetProcessID(pid); - process_info.GetExecutableFile().SetFile(PathRef, false); + process_info.GetExecutableFile().SetFile(PathRef, false, + FileSpec::Style::native); llvm::StringRef Rest = Environ->getBuffer(); while (!Rest.empty()) { diff --git a/lldb/source/Host/linux/HostInfoLinux.cpp b/lldb/source/Host/linux/HostInfoLinux.cpp index 4df14cf7561..4983947ea4d 100644 --- a/lldb/source/Host/linux/HostInfoLinux.cpp +++ b/lldb/source/Host/linux/HostInfoLinux.cpp @@ -187,7 +187,7 @@ FileSpec HostInfoLinux::GetProgramFileSpec() { ssize_t len = readlink("/proc/self/exe", exe_path, sizeof(exe_path) - 1); if (len > 0) { exe_path[len] = 0; - g_program_filespec.SetFile(exe_path, false); + g_program_filespec.SetFile(exe_path, false, FileSpec::Style::native); } } |