forked from OSchip/llvm-project
[FileSystem] Change FileSpec constructor signature (2/2)
Fix breakage due to the recent FileSpec change that extracts the path resultion logic into FileSystem for the FreeBSD host. llvm-svn: 345895
This commit is contained in:
parent
09b6b3bd15
commit
2ac403e25a
|
@ -75,11 +75,9 @@ GetFreeBSDProcessArgs(const ProcessInstanceInfoMatch *match_info_ptr,
|
||||||
size_t pathname_len = sizeof(pathname);
|
size_t pathname_len = sizeof(pathname);
|
||||||
mib[2] = KERN_PROC_PATHNAME;
|
mib[2] = KERN_PROC_PATHNAME;
|
||||||
if (::sysctl(mib, 4, pathname, &pathname_len, NULL, 0) == 0)
|
if (::sysctl(mib, 4, pathname, &pathname_len, NULL, 0) == 0)
|
||||||
process_info.GetExecutableFile().SetFile(pathname, false,
|
process_info.GetExecutableFile().SetFile(pathname, FileSpec::Style::native);
|
||||||
FileSpec::Style::native);
|
|
||||||
else
|
else
|
||||||
process_info.GetExecutableFile().SetFile(cstr, false,
|
process_info.GetExecutableFile().SetFile(cstr, FileSpec::Style::native);
|
||||||
FileSpec::Style::native);
|
|
||||||
|
|
||||||
if (!(match_info_ptr == NULL ||
|
if (!(match_info_ptr == NULL ||
|
||||||
NameMatches(process_info.GetExecutableFile().GetFilename().GetCString(),
|
NameMatches(process_info.GetExecutableFile().GetFilename().GetCString(),
|
||||||
|
|
Loading…
Reference in New Issue