diff options
author | George Rimar <grimar@accesssoftek.com> | 2016-01-22 10:57:39 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2016-01-22 10:57:39 +0000 |
commit | d0cb85b62d565baf574f153a77bbeaa9dbbc5ce3 (patch) | |
tree | fc4421129a32f3e99f0f75c410900a15d1407bc1 | |
parent | 1c3a6d7808412cdaee63213192d11ae0f7349dac (diff) | |
download | bcm5719-llvm-d0cb85b62d565baf574f153a77bbeaa9dbbc5ce3.tar.gz bcm5719-llvm-d0cb85b62d565baf574f153a77bbeaa9dbbc5ce3.zip |
Use of llvm_unreachable instead of warning in EhFrameHeader<ELFT>::assignEhFrame().
llvm-svn: 258499
-rw-r--r-- | lld/ELF/OutputSections.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index e18eb15e156..f6f5d96d974 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -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; } |