forked from OSchip/llvm-project
Use of llvm_unreachable instead of warning in EhFrameHeader<ELFT>::assignEhFrame().
llvm-svn: 258499
This commit is contained in:
parent
1c3a6d7808
commit
d0cb85b62d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue