forked from OSchip/llvm-project
memcpy instead of copy_n. Faster than copy_n on MSVC :(.
llvm-svn: 177557
This commit is contained in:
parent
fa405277cb
commit
9dc5489441
|
@ -355,7 +355,7 @@ void AtomSection<ELFT>::write(ELFWriter *writer,
|
|||
if (contentSize == 0)
|
||||
continue;
|
||||
uint8_t *atomContent = chunkBuffer + ai->_fileOffset;
|
||||
std::copy_n(content.data(), contentSize, atomContent);
|
||||
std::memcpy(atomContent, content.data(), contentSize);
|
||||
const TargetRelocationHandler<ELFT> &relHandler =
|
||||
this->_targetInfo.template getTargetHandler<ELFT>()
|
||||
.getRelocationHandler();
|
||||
|
|
Loading…
Reference in New Issue