[lld] r264691 - [LTO] Include bitcode symbol name in unreachable messages.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 28 18:40:07 PDT 2016
Author: davide
Date: Mon Mar 28 20:40:07 2016
New Revision: 264691
URL: http://llvm.org/viewvc/llvm-project?rev=264691&view=rev
Log:
[LTO] Include bitcode symbol name in unreachable messages.
Modified:
lld/trunk/ELF/OutputSections.cpp
lld/trunk/ELF/Symbols.cpp
Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=264691&r1=264690&r2=264691&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Mon Mar 28 20:40:07 2016
@@ -1505,7 +1505,7 @@ SymbolTableSection<ELFT>::getOutputSecti
case SymbolBody::LazyKind:
break;
case SymbolBody::DefinedBitcodeKind:
- llvm_unreachable("should have been replaced");
+ llvm_unreachable("Symbol " + Sym.getName() + " should have been replaced");
}
return nullptr;
}
Modified: lld/trunk/ELF/Symbols.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Symbols.cpp?rev=264691&r1=264690&r2=264691&view=diff
==============================================================================
--- lld/trunk/ELF/Symbols.cpp (original)
+++ lld/trunk/ELF/Symbols.cpp Mon Mar 28 20:40:07 2016
@@ -75,7 +75,7 @@ static typename ELFT::uint getSymVA(cons
assert(Body.isUsedInRegularObj() && "lazy symbol reached writer");
return 0;
case SymbolBody::DefinedBitcodeKind:
- llvm_unreachable("should have been replaced");
+ llvm_unreachable("Symbol " + Body.getName() + " should have been replaced");
}
llvm_unreachable("invalid symbol kind");
}
More information about the llvm-commits
mailing list