summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2016-01-22 10:57:39 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2016-01-22 10:57:39 +0000
commitd0cb85b62d565baf574f153a77bbeaa9dbbc5ce3 (patch)
treefc4421129a32f3e99f0f75c410900a15d1407bc1
parent1c3a6d7808412cdaee63213192d11ae0f7349dac (diff)
downloadbcm5719-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.cpp7
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;
}
OpenPOWER on IntegriCloud