forked from OSchip/llvm-project
Commit Timothee Besset's patch to update Host/linux/Host.cpp to keep up
with the changes in r186211. llvm-svn: 186299
This commit is contained in:
parent
7a12961bba
commit
d6cfc16ffa
|
@ -341,7 +341,7 @@ GetELFProcessCPUType (const char *exe_path, ProcessInstanceInfo &process_info)
|
|||
|
||||
ModuleSpecList specs;
|
||||
FileSpec filespec (exe_path, false);
|
||||
const size_t num_specs = ObjectFile::GetModuleSpecifications (filespec, 0, specs);
|
||||
const size_t num_specs = ObjectFile::GetModuleSpecifications (filespec, 0, 0, specs);
|
||||
// GetModuleSpecifications() could fail if the executable has been deleted or is locked.
|
||||
// But it shouldn't return more than 1 architecture.
|
||||
assert(num_specs <= 1 && "Linux plugin supports only a single architecture");
|
||||
|
|
Loading…
Reference in New Issue