[CodeView] Remove manual expansion of the default copy ctor.

It provides nothing over the default one but makes the class not
trivially copyable. No functionality change intended.

llvm-svn: 272186
This commit is contained in:
Benjamin Kramer 2016-06-08 18:19:38 +00:00
parent f290b7e77d
commit e3b0933b91

View File

@ -25,9 +25,6 @@ public:
: 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 {
@ -68,13 +65,6 @@ public:
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;