diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2014-03-14 06:53:25 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2014-03-14 06:53:25 +0000 |
commit | 9e30b784858d82881aaa7fbbea7c6bec82770846 (patch) | |
tree | 5b3191a8d48267aaf39073d8cf44832974381c70 /tools | |
parent | ef3154042b0314d12a6a14aaf3e2737c63ad35c0 (diff) | |
download | llvm-9e30b784858d82881aaa7fbbea7c6bec82770846.tar.gz llvm-9e30b784858d82881aaa7fbbea7c6bec82770846.tar.bz2 llvm-9e30b784858d82881aaa7fbbea7c6bec82770846.tar.xz |
[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
Diffstat (limited to 'tools')
-rw-r--r-- | tools/yaml2obj/yaml2elf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/yaml2obj/yaml2elf.cpp b/tools/yaml2obj/yaml2elf.cpp index c8fc0637ee..b51a6dacef 100644 --- a/tools/yaml2obj/yaml2elf.cpp +++ b/tools/yaml2obj/yaml2elf.cpp @@ -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; |