OSDN Git Service

[BinaryStream] Defaultify copy and move constructors.
authorZachary Turner <zturner@google.com>
Mon, 21 Aug 2017 19:46:46 +0000 (19:46 +0000)
committerZachary Turner <zturner@google.com>
Mon, 21 Aug 2017 19:46:46 +0000 (19:46 +0000)
commitf6ac6bc24809eeb899815898f55e80d12c4b2804
tree05966d60da473752a02bb3380b4033e9861d0493
parent5aca549a9a89a96c7aed118197e450277c66d348
[BinaryStream] Defaultify copy and move constructors.

The various BinaryStream classes had explicit copy constructors
which resulted in deleted move constructors.  This was causing
the internal std::shared_ptr to get copied rather than moved
very frequently, since these classes are often used as return
values.

Patch by Alex Telishev
Differential Revision: https://reviews.llvm.org/D36942

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311368 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/BinaryStreamRef.h
lib/Support/BinaryStreamRef.cpp