[LTO] Include bitcode symbol name in unreachable messages.

llvm-svn: 264691
This commit is contained in:
Davide Italiano 2016-03-29 01:40:07 +00:00
parent fa7057a415
commit a50e0b97f1
2 changed files with 2 additions and 2 deletions

View File

@ -1505,7 +1505,7 @@ SymbolTableSection<ELFT>::getOutputSection(SymbolBody *Sym) {
case SymbolBody::LazyKind:
break;
case SymbolBody::DefinedBitcodeKind:
llvm_unreachable("should have been replaced");
llvm_unreachable("Symbol " + Sym.getName() + " should have been replaced");
}
return nullptr;
}

View File

@ -75,7 +75,7 @@ static typename ELFT::uint getSymVA(const SymbolBody &Body,
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");
}