[PATCH] Replace OwningPtr with std::unique_ptr.

Ahmed Charles acharles at outlook.com
Wed Mar 12 10:10:40 PDT 2014


Hi dblaikie, chandlerc,

This results in some simplifications to the code where an OwningPtr had to be used with the previous api and then ownership moved to a unique_ptr for the rest of lld.

http://llvm-reviews.chandlerc.com/D3055

Files:
  include/lld/Core/LLVM.h
  include/lld/Driver/CoreInputGraph.h
  include/lld/ReaderWriter/LinkerScript.h
  lib/Core/InputGraph.cpp
  lib/Driver/WinLinkDriver.cpp
  lib/Passes/RoundTripNativePass.cpp
  lib/Passes/RoundTripYAMLPass.cpp
  lib/ReaderWriter/ELF/Chunk.h
  lib/ReaderWriter/ELF/DefaultLayout.h
  lib/ReaderWriter/ELF/OutputELFWriter.h
  lib/ReaderWriter/ELF/SectionChunks.h
  lib/ReaderWriter/ELF/SegmentChunks.h
  lib/ReaderWriter/FileArchive.cpp
  lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
  lib/ReaderWriter/Native/ReaderNative.cpp
  lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
  lib/ReaderWriter/PECOFF/WriterPECOFF.cpp
  lib/ReaderWriter/Reader.cpp
  lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
  unittests/MachOTests/MachONormalizedFileBinaryWriterTests.cpp
  utils/linker-script-test/linker-script-test.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3055.1.patch
Type: text/x-patch
Size: 21393 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140312/45045915/attachment.bin>


More information about the llvm-commits mailing list