llvm.org GIT mirror llvm / 9e30b78
[yaml2obj][ELF] Refer to a section in the error message by its name not index. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203899 91177308-0d34-0410-b5e6-96231b3b80d8 Simon Atanasyan 5 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
325325 unsigned Index;
326326 if (SN2I.lookupSection(Sec.Link, Index)) {
327327 errs() << "error: Unknown section referenced: '" << Sec.Link
328 << "' at YAML section number " << i << ".\n";
328 << "' at YAML section '" << Sec.Name << "'.\n";
329329 return 1;
330330 }
331331 SHeader.sh_link = Index;