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)
commit1aabf982bc5ff2dbdf3906267ef680a530fd3d35
tree36fa6d6202c61f99742d535efd2df508f128df06
parent857546e7e00f150063d0e3143fbf14e5b2157c05
Use std::unique_ptr to manage the DataStreamer in bitcode parsing.

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

llvm-svn: 239867
llvm/include/llvm/Bitcode/ReaderWriter.h
llvm/include/llvm/Support/DataStream.h
llvm/include/llvm/Support/StreamingMemoryObject.h
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/Support/DataStream.cpp
llvm/lib/Support/StreamingMemoryObject.cpp
llvm/tools/llvm-dis/llvm-dis.cpp
llvm/unittests/Support/StreamingMemoryObject.cpp