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

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 30 12:18:34 PDT 2017


ruiu added inline comments.


================
Comment at: lld/ELF/Relocations.cpp:623
+  std::string Obj = S.getObjMsg<ELFT>(Offset);
+  if (Src.empty() && !Obj.empty())
+    Msg += "\n>>> referenced by " + Obj;
----------------
rafael wrote:
> Obj is never empty, is it?
If it is a synthetic section, it can be null, I think.


https://reviews.llvm.org/D31481





More information about the llvm-commits mailing list