template <class ELFT>
void BuildIdSection<ELFT>::computeHash(
- llvm::ArrayRef<uint8_t> Data,
+ llvm::MutableArrayRef<uint8_t> Data,
std::function<void(ArrayRef<uint8_t> Arr, uint8_t *Hash)> Hash) {
std::vector<ArrayRef<uint8_t>> Chunks = split(Data, 1024 * 1024);
std::vector<uint8_t> HashList(Chunks.size() * HashSize);
Hash(Chunk, HashList.data() + Id * HashSize);
});
- Hash(HashList, this->getOutputLoc((uint8_t *)Data.begin()) + 16);
+ Hash(HashList, this->getOutputLoc(Data.begin()) + 16);
}
template <class ELFT>
std::vector<uint8_t> Buf;
void
- computeHash(llvm::ArrayRef<uint8_t> Buf,
+ computeHash(llvm::MutableArrayRef<uint8_t> Buf,
std::function<void(ArrayRef<uint8_t> Arr, uint8_t *Hash)> Hash);
size_t HashSize;