[lld] r258499 - Use of llvm_unreachable instead of warning in EhFrameHeader<ELFT>::assignEhFrame().
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 22 02:57:39 PST 2016
Author: grimar
Date: Fri Jan 22 04:57:39 2016
New Revision: 258499
URL: http://llvm.org/viewvc/llvm-project?rev=258499&view=rev
Log:
Use of llvm_unreachable instead of warning in EhFrameHeader<ELFT>::assignEhFrame().
Modified:
lld/trunk/ELF/OutputSections.cpp
Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=258499&r1=258498&r2=258499&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Fri Jan 22 04:57:39 2016
@@ -863,11 +863,8 @@ template <class ELFT> void EhFrameHeader
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;
}
More information about the llvm-commits
mailing list