Make YAML files own MemoryBuffer.
authorRui Ueyama <ruiu@google.com>
Sat, 13 Dec 2014 08:59:50 +0000 (08:59 +0000)
committerRui Ueyama <ruiu@google.com>
Sat, 13 Dec 2014 08:59:50 +0000 (08:59 +0000)
commita60a75e566439001f31ca3184c10f51675e1c3ae
tree2a9e66731eecda496ddc561a94b8ff4d2f9869c7
parentecf28e25de2d9b70abc4f3236e8fb8cbc0835ebb
Make YAML files own MemoryBuffer.

YAML files have references such as StringRef to the underlying
MemoryBuffer, so we shouldn't deallocate the buffer.

llvm-svn: 224191
lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp