[lld] r286064 - [ELF] - Fix linux BB after r286061.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 6 01:26:54 PDT 2016
Author: grimar
Date: Sun Nov 6 02:26:53 2016
New Revision: 286064
URL: http://llvm.org/viewvc/llvm-project?rev=286064&view=rev
Log:
[ELF] - Fix linux BB after r286061.
Modified:
lld/trunk/ELF/SyntheticSections.cpp
Modified: lld/trunk/ELF/SyntheticSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SyntheticSections.cpp?rev=286064&r1=286063&r2=286064&view=diff
==============================================================================
--- lld/trunk/ELF/SyntheticSections.cpp (original)
+++ lld/trunk/ELF/SyntheticSections.cpp Sun Nov 6 02:26:53 2016
@@ -146,7 +146,7 @@ void BuildIdSection<ELFT>::computeHash(
template <class ELFT>
void BuildIdFastHash<ELFT>::writeBuildId(MutableArrayRef<uint8_t> Buf) {
- computeHash(Buf, [](ArrayRef<uint8_t> Arr, uint8_t *Dest) {
+ this->computeHash(Buf, [](ArrayRef<uint8_t> Arr, uint8_t *Dest) {
uint64_t Hash = xxHash64(toStringRef(Arr));
write64<ELFT::TargetEndianness>(Dest, Hash);
});
@@ -154,21 +154,21 @@ void BuildIdFastHash<ELFT>::writeBuildId
template <class ELFT>
void BuildIdMd5<ELFT>::writeBuildId(MutableArrayRef<uint8_t> Buf) {
- computeHash(Buf, [&](ArrayRef<uint8_t> Arr, uint8_t *Dest) {
+ this->computeHash(Buf, [&](ArrayRef<uint8_t> Arr, uint8_t *Dest) {
MD5 Hash;
Hash.update(Arr);
MD5::MD5Result Res;
Hash.final(Res);
- memcpy(Dest, Res, HashSize);
+ memcpy(Dest, Res, this->HashSize);
});
}
template <class ELFT>
void BuildIdSha1<ELFT>::writeBuildId(MutableArrayRef<uint8_t> Buf) {
- computeHash(Buf, [&](ArrayRef<uint8_t> Arr, uint8_t *Dest) {
+ this->computeHash(Buf, [&](ArrayRef<uint8_t> Arr, uint8_t *Dest) {
SHA1 Hash;
Hash.update(Arr);
- memcpy(Dest, Hash.final().data(), HashSize);
+ memcpy(Dest, Hash.final().data(), this->HashSize);
});
}
More information about the llvm-commits
mailing list