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

Simon Atanasyan simon at atanasyan.com
Thu Mar 13 23:53:25 PDT 2014


Author: atanasyan
Date: Fri Mar 14 01:53:25 2014
New Revision: 203899

URL: http://llvm.org/viewvc/llvm-project?rev=203899&view=rev
Log:
[yaml2obj][ELF] Refer to a section in the error message by its name not
index.

Modified:
    llvm/trunk/tools/yaml2obj/yaml2elf.cpp

Modified: llvm/trunk/tools/yaml2obj/yaml2elf.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/yaml2obj/yaml2elf.cpp?rev=203899&r1=203898&r2=203899&view=diff
==============================================================================
--- llvm/trunk/tools/yaml2obj/yaml2elf.cpp (original)
+++ llvm/trunk/tools/yaml2obj/yaml2elf.cpp Fri Mar 14 01:53:25 2014
@@ -326,7 +326,7 @@ static int writeELF(raw_ostream &OS, con
       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;





More information about the llvm-commits mailing list