llvm-6502/lib/Object
David Blaikie 95689f0845 Correct the ownership passing semantics of object::createBinary and make them explicit in the type system.
createBinary documented that it destroyed the parameter in error cases,
though by observation it does not. By passing the unique_ptr by value
rather than lvalue reference, callers are now explicit about passing
ownership and the function implements the documented contract. Remove
the explicit documentation, since now the behavior cannot be anything
other than what was documented, so it's redundant.

Also drops a unique_ptr::release in llvm-nm that was always run on a
null unique_ptr anyway.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213557 91177308-0d34-0410-b5e6-96231b3b80d8
2014-07-21 16:26:24 +00:00
..
Archive.cpp Correct the ownership passing semantics of object::createBinary and make them explicit in the type system. 2014-07-21 16:26:24 +00:00
Binary.cpp Correct the ownership passing semantics of object::createBinary and make them explicit in the type system. 2014-07-21 16:26:24 +00:00
CMakeLists.txt Add support for inline asm symbols to IRObjectFile. 2014-07-03 18:59:23 +00:00
COFFObjectFile.cpp Pass a unique_ptr<MemoryBuffer> to the constructors in the Binary hierarchy. 2014-06-24 13:56:32 +00:00
COFFYAML.cpp
ELF.cpp [PowerPC] 32-bit ELF PIC support 2014-07-18 23:29:49 +00:00
ELFObjectFile.cpp This only needs a StringRef. No functionality change. 2014-07-05 11:38:52 +00:00
ELFYAML.cpp Add forgotten break statement. 2014-07-13 16:18:56 +00:00
Error.cpp
IRObjectFile.cpp Make RecordStreamer.h private. 2014-07-04 22:44:18 +00:00
LLVMBuild.txt Object/LLVMBuild.txt: Sort required_libraries by alphabetical order. 2014-07-14 02:52:08 +00:00
MachOObjectFile.cpp Namespace cleanup (no functional change) 2014-07-20 12:08:28 +00:00
MachOUniversal.cpp Pass a unique_ptr<MemoryBuffer> to the constructors in the Binary hierarchy. 2014-06-24 13:56:32 +00:00
Makefile
Object.cpp
ObjectFile.cpp Update the MemoryBuffer API to use ErrorOr. 2014-07-06 17:43:13 +00:00
RecordStreamer.cpp Make RecordStreamer.h private. 2014-07-04 22:44:18 +00:00
RecordStreamer.h Make RecordStreamer.h private. 2014-07-04 22:44:18 +00:00
SymbolicFile.cpp Pass a unique_ptr<MemoryBuffer> to the constructors in the Binary hierarchy. 2014-06-24 13:56:32 +00:00