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

llvm-svn: 258670
This commit is contained in:
George Rimar 2016-01-25 08:20:16 +00:00
parent 41ed6b7aba
commit 06415e97f2
1 changed files with 1 additions and 1 deletions

View File

@ -862,7 +862,7 @@ 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)
llvm_unreachable("multiple .eh_frame sections not supported for .eh_frame_hdr");
assert("multiple .eh_frame sections not supported for .eh_frame_hdr");
Live = Config->EhFrameHdr;
this->Sec = Sec;
}