From 9e30b784858d82881aaa7fbbea7c6bec82770846 Mon Sep 17 00:00:00 2001 From: Simon Atanasyan Date: Fri, 14 Mar 2014 06:53:25 +0000 Subject: [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 --- tools/yaml2obj/yaml2elf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/yaml2obj/yaml2elf.cpp') 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; -- cgit v1.2.3