forked from OSchip/llvm-project
[LTO] Include bitcode symbol name in unreachable messages.
llvm-svn: 264691
This commit is contained in:
parent
fa7057a415
commit
a50e0b97f1
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue