@@ -317,7 +317,7 @@ void COFFWriter::writeSections() {
317317 uint8_t *Ptr = reinterpret_cast <uint8_t *>(Buf->getBufferStart ()) +
318318 S.Header .PointerToRawData ;
319319 ArrayRef<uint8_t > Contents = S.getContents ();
320- std ::copy (Contents. begin (), Contents. end () , Ptr);
320+ llvm ::copy (Contents, Ptr);
321321
322322 // For executable sections, pad the remainder of the raw data size with
323323 // 0xcc, which is int3 on x86.
@@ -355,7 +355,7 @@ template <class SymbolTy> void COFFWriter::writeSymbolStringTables() {
355355 // For file symbols, just write the string into the aux symbol slots,
356356 // assuming that the unwritten parts are initialized to zero in the memory
357357 // mapped file.
358- std ::copy (S.AuxFile . begin (), S. AuxFile . end () , Ptr);
358+ llvm ::copy (S.AuxFile , Ptr);
359359 Ptr += S.Sym .NumberOfAuxSymbols * sizeof (SymbolTy);
360360 } else {
361361 // For other auxillary symbols, write their opaque payload into one symbol
@@ -364,7 +364,7 @@ template <class SymbolTy> void COFFWriter::writeSymbolStringTables() {
364364 // entry.
365365 for (const AuxSymbol &AuxSym : S.AuxData ) {
366366 ArrayRef<uint8_t > Ref = AuxSym.getRef ();
367- std ::copy (Ref. begin (), Ref. end () , Ptr);
367+ llvm ::copy (Ref, Ptr);
368368 Ptr += sizeof (SymbolTy);
369369 }
370370 }
0 commit comments