Skip to content

Commit

Permalink
[yaml2obj][ELF] Refer to a section in the error message by its name not
Browse files Browse the repository at this point in the history
index.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203899 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
atanasyan committed Mar 14, 2014
1 parent ef31540 commit 9e30b78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/yaml2obj/yaml2elf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ static int writeELF(raw_ostream &OS, const ELFYAML::Object &Doc) {
unsigned Index;
if (SN2I.lookupSection(Sec.Link, Index)) {
errs() << "error: Unknown section referenced: '" << Sec.Link
<< "' at YAML section number " << i << ".\n";
<< "' at YAML section '" << Sec.Name << "'.\n";
return 1;
}
SHeader.sh_link = Index;
Expand Down

0 comments on commit 9e30b78

Please sign in to comment.