[lld] r305868 - Improve error messages.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 20 16:11:29 PDT 2017
Author: ruiu
Date: Tue Jun 20 18:11:28 2017
New Revision: 305868
URL: http://llvm.org/viewvc/llvm-project?rev=305868&view=rev
Log:
Improve error messages.
Modified:
lld/trunk/COFF/Writer.cpp
Modified: lld/trunk/COFF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Writer.cpp?rev=305868&r1=305867&r2=305868&view=diff
==============================================================================
--- lld/trunk/COFF/Writer.cpp (original)
+++ lld/trunk/COFF/Writer.cpp Tue Jun 20 18:11:28 2017
@@ -213,13 +213,14 @@ void OutputSection::writeHeaderTo(uint8_
uint64_t Defined::getSecrel() {
if (auto *D = dyn_cast<DefinedRegular>(this))
return getRVA() - D->getChunk()->getOutputSection()->getRVA();
- fatal("SECREL relocation points to a non-regular symbol");
+ fatal("SECREL relocation points to a non-regular symbol: " + toString(*this));
}
uint64_t Defined::getSectionIndex() {
if (auto *D = dyn_cast<DefinedRegular>(this))
return D->getChunk()->getOutputSection()->SectionIndex;
- fatal("SECTION relocation points to a non-regular symbol");
+ fatal("SECTION relocation points to a non-regular symbol: " +
+ toString(*this));
}
bool Defined::isExecutable() {
More information about the llvm-commits
mailing list