Use std::unique_ptr to manage the DataStreamer in bitcode parsing.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 16 Jun 2015 23:29:49 +0000 (23:29 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 16 Jun 2015 23:29:49 +0000 (23:29 +0000)
commit4a4558e436353fa1fc4cd4ddff7491e631d71357
tree7e6f82acd0c10c2245f08f54319ba08910ca6258
parent3fea1651f60f5095b460f7b6cfb7952292d10653
Use std::unique_ptr to manage the DataStreamer in bitcode parsing.

We were already deleting it, this just makes it explicit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239867 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Bitcode/ReaderWriter.h
include/llvm/Support/DataStream.h
include/llvm/Support/StreamingMemoryObject.h
lib/Bitcode/Reader/BitcodeReader.cpp
lib/Support/DataStream.cpp
lib/Support/StreamingMemoryObject.cpp
tools/llvm-dis/llvm-dis.cpp
unittests/Support/StreamingMemoryObject.cpp