summaryrefslogtreecommitdiff
path: root/lld/ELF/InputSection.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2018-07-31 18:13:36 +0000
committerRui Ueyama <ruiu@google.com>2018-07-31 18:13:36 +0000
commit121334239f819ad9d6211b96ba2fed8d2be6df47 (patch)
treecc44d53873b297fb6659550f61d5454c3bb4de7c /lld/ELF/InputSection.cpp
parentb91fdfe9eaa91bdc11553b14003484c3c22e435e (diff)
Simplify. NFC.
Diffstat (limited to 'lld/ELF/InputSection.cpp')
-rw-r--r--lld/ELF/InputSection.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp
index d6e9a19051e..c2c0acdcfa4 100644
--- a/lld/ELF/InputSection.cpp
+++ b/lld/ELF/InputSection.cpp
@@ -1071,8 +1071,7 @@ void MergeInputSection::splitNonStrings(ArrayRef<uint8_t> Data,
bool IsAlloc = Flags & SHF_ALLOC;
for (size_t I = 0; I != Size; I += EntSize)
- Pieces.emplace_back(I, xxHash64(toStringRef(Data.slice(I, EntSize))),
- !IsAlloc);
+ Pieces.emplace_back(I, xxHash64(Data.slice(I, EntSize)), !IsAlloc);
}
template <class ELFT>