memcpy instead of copy_n. Faster than copy_n on MSVC :(.

llvm-svn: 177557
This commit is contained in:
Michael J. Spencer 2013-03-20 18:58:07 +00:00
parent fa405277cb
commit 9dc5489441
1 changed files with 1 additions and 1 deletions

View File

@ -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();