llvm-project/lld/lib/Passes
Rui Ueyama 961f43fb70 Make File always take the ownership of a MemoryBuffer.
The documentation of parseFile() said that "the resulting File
object may take ownership of the MemoryBuffer." So, whether or not
the ownership of a MemoryBuffer would be taken was not clear.
A FileNode (a subclass of InputElement, which is being deprecated)
keeps the ownership if a File doesn't take it.

This patch makes File always take the ownership of a buffer.
Buffers lifespan is not always the same as File instances.
Files are able to deallocate buffers after parsing the contents.

llvm-svn: 224113
2014-12-12 10:27:33 +00:00
..
CMakeLists.txt [CMake] lld: Introduce ${cmake_2_8_12_INTERFACE} onto each target_link_libraries. [PR20254] 2014-10-17 00:37:49 +00:00
LayoutPass.cpp [mach-o] Add support for -order_file option 2014-11-07 21:01:21 +00:00
Makefile Initial set of Makefiles 2014-06-04 09:54:07 +00:00
RoundTripNativePass.cpp Make File always take the ownership of a MemoryBuffer. 2014-12-12 10:27:33 +00:00
RoundTripYAMLPass.cpp Make File always take the ownership of a MemoryBuffer. 2014-12-12 10:27:33 +00:00