mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-04 03:06:28 +00:00
[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:
parent
f290b7e77d
commit
e3b0933b91
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user