Skip to content

Commit

Permalink
[CodeView] Remove manual expansion of the default copy ctor.
Browse files Browse the repository at this point in the history
It provides nothing over the default one but makes the class not
trivially copyable. No functionality change intended.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272186 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
d0k committed Jun 8, 2016
1 parent 05f452d commit 4fb8b60
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions include/llvm/DebugInfo/CodeView/StreamRef.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ class StreamRef : private StreamInterface {
: Stream(&Stream), ViewOffset(Offset), Length(Length) {}

StreamRef(const StreamRef &Stream, uint32_t Offset, uint32_t Length) = delete;
StreamRef(const StreamRef &Other)
: Stream(Other.Stream), ViewOffset(Other.ViewOffset),
Length(Other.Length) {}

Error readBytes(uint32_t Offset, uint32_t Size,
ArrayRef<uint8_t> &Buffer) const override {
Expand Down Expand Up @@ -68,13 +65,6 @@ class StreamRef : private StreamInterface {

bool operator!=(const StreamRef &Other) const { return !(*this == Other); }

StreamRef &operator=(const StreamRef &Other) {
Stream = Other.Stream;
ViewOffset = Other.ViewOffset;
Length = Other.Length;
return *this;
}

private:
const StreamInterface *Stream;
uint32_t ViewOffset;
Expand Down

0 comments on commit 4fb8b60

Please sign in to comment.