Skip to content
Snippets Groups Projects
Commit 4d70d2a5 authored by Simon Atanasyan's avatar Simon Atanasyan
Browse files

[yaml2obj][ELF] Refer to a section in the error message by its name not

index.

llvm-svn: 203899
parent 64dadc89
No related branches found
No related tags found
No related merge requests found
...@@ -326,7 +326,7 @@ static int writeELF(raw_ostream &OS, const ELFYAML::Object &Doc) { ...@@ -326,7 +326,7 @@ static int writeELF(raw_ostream &OS, const ELFYAML::Object &Doc) {
unsigned Index; unsigned Index;
if (SN2I.lookupSection(Sec.Link, Index)) { if (SN2I.lookupSection(Sec.Link, Index)) {
errs() << "error: Unknown section referenced: '" << Sec.Link errs() << "error: Unknown section referenced: '" << Sec.Link
<< "' at YAML section number " << i << ".\n"; << "' at YAML section '" << Sec.Name << "'.\n";
return 1; return 1;
} }
SHeader.sh_link = Index; SHeader.sh_link = Index;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment