[PATCH] D31481: Change the error message format for undefined symbols.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 29 15:27:09 PDT 2017


ruiu created this revision.

Previously, undefined symbol errors are one line like this
and wasn't easy to read.

  /ssd/clang/bin/ld.lld: error: /ssd/llvm-project/lld/ELF/Writer.cpp:207: undefined symbol 'lld::elf::EhFrameSection<llvm::object::ELFType<(llvm::support::endianness)0, true> >::addSection(lld::elf::InputSectionBase*)'

This patch make it more structured like this.

  bin/ld.lld: error: undefined symbol: lld::elf::EhFrameSection<llvm::object::ELFType<(llvm::support::endianness)0, true>
  >>> Referenced by Writer.cpp:207 (/ssd/llvm-project/lld/ELF/Writer.cpp:207)
  >>>               Writer.cpp.o in archive lib/liblldELF.a

Discussion thread is
http://lists.llvm.org/pipermail/llvm-dev/2017-March/111459.html


https://reviews.llvm.org/D31481

Files:
  lld/ELF/Error.cpp
  lld/ELF/InputFiles.cpp
  lld/ELF/InputFiles.h
  lld/ELF/InputSection.cpp
  lld/ELF/InputSection.h
  lld/ELF/Relocations.cpp
  lld/test/ELF/libsearch.s
  lld/test/ELF/linkerscript/edata-etext.s
  lld/test/ELF/linkerscript/ehdr_start.s
  lld/test/ELF/lto/archive-no-index.ll
  lld/test/ELF/lto/combined-lto-object-name.ll
  lld/test/ELF/sysroot.s
  lld/test/ELF/tls-static.s
  lld/test/ELF/undef-shared.s
  lld/test/ELF/undef.s
  lld/test/ELF/unresolved-symbols.s
  lld/test/ELF/verneed-local.s
  lld/test/ELF/warn-unresolved-symbols-hidden.s
  lld/test/ELF/warn-unresolved-symbols.s
  lld/test/ELF/zdefs.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31481.93417.patch
Type: text/x-patch
Size: 20911 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170329/8a634d4e/attachment.bin>


More information about the llvm-commits mailing list