projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
459b4b7
)
[ELF] EhInputSection::split: remove unneeded check
author
Fangrui Song
<i@maskray.me>
Mon, 17 Jan 2022 21:59:51 +0000
(13:59 -0800)
committer
Fangrui Song
<i@maskray.me>
Mon, 17 Jan 2022 21:59:52 +0000
(13:59 -0800)
lld/ELF/InputSection.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/InputSection.cpp
b/lld/ELF/InputSection.cpp
index
feeb290
..
db439c3
100644
(file)
--- a/
lld/ELF/InputSection.cpp
+++ b/
lld/ELF/InputSection.cpp
@@
-1340,9
+1340,6
@@
void EhInputSection::split(ArrayRef<RelTy> rels) {
for (size_t off = 0, end = data().size(); off != end;) {
size_t size = readEhRecordSize(this, off);
pieces.emplace_back(off, this, size, getReloc(off, size, rels, relI));
- // The empty record is the end marker.
- if (size == 4)
- break;
off += size;
}
}