Use of llvm_unreachable instead of warning in EhFrameHeader<ELFT>::assignEhFrame().

llvm-svn: 258499
This commit is contained in:
George Rimar 2016-01-22 10:57:39 +00:00
parent 1c3a6d7808
commit d0cb85b62d
1 changed files with 2 additions and 5 deletions

View File

@ -863,11 +863,8 @@ template <class ELFT> void EhFrameHeader<ELFT>::writeTo(uint8_t *Buf) {
template <class ELFT>
void EhFrameHeader<ELFT>::assignEhFrame(EHOutputSection<ELFT> *Sec) {
if (this->Sec && this->Sec != Sec) {
warning("multiple .eh_frame sections not supported for .eh_frame_hdr");
Live = false;
return;
}
if (this->Sec && this->Sec != Sec)
llvm_unreachable("multiple .eh_frame sections not supported for .eh_frame_hdr");
Live = Config->EhFrameHdr;
this->Sec = Sec;
}