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
..
2014-12-12 05:20:28 +00:00
2014-11-30 04:17:06 +00:00
2014-10-21 03:12:57 +00:00
2014-01-27 03:09:26 +00:00
2014-08-13 13:16:38 +00:00
2014-11-04 04:50:58 +00:00