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:
Jason Molenda 2013-07-15 03:25:21 +00:00
parent 7a12961bba
commit d6cfc16ffa
1 changed files with 1 additions and 1 deletions

View File

@ -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");