summaryrefslogtreecommitdiff
path: root/lld/ELF/InputSection.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2018-04-27 18:17:36 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2018-04-27 18:17:36 +0000
commit805a460526b0460b7cad43a4b4fb74b616fc44d7 (patch)
treed178556ee3dcb9c5bc7bc5a831879da39bf21f63 /lld/ELF/InputSection.cpp
parentb820ae503b2b2237b227d8a6fe94de4663185721 (diff)
Split .eh_frame sections in parellel.
We can now split them in the same spot we split merge sections.
Diffstat (limited to 'lld/ELF/InputSection.cpp')
-rw-r--r--lld/ELF/InputSection.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp
index 7b64621a146..9612c29cebf 100644
--- a/lld/ELF/InputSection.cpp
+++ b/lld/ELF/InputSection.cpp
@@ -836,10 +836,6 @@ static unsigned getReloc(IntTy Begin, IntTy Size, const ArrayRef<RelTy> &Rels,
// .eh_frame is a sequence of CIE or FDE records.
// This function splits an input section into records and returns them.
template <class ELFT> void EhInputSection::split() {
- // Early exit if already split.
- if (!Pieces.empty())
- return;
-
if (AreRelocsRela)
split<ELFT>(relas<ELFT>());
else