Mark unimplemented copy constructors and copy assignment operators as LLVM_DELETED_FUNCTION.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164014 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Craig Topper
2012-09-17 06:31:17 +00:00
parent 7ffafe4102
commit fc601db2ed
12 changed files with 30 additions and 28 deletions

View File

@ -78,10 +78,11 @@ public:
~FileOutputBuffer();
private:
FileOutputBuffer(const FileOutputBuffer &) LLVM_DELETED_FUNCTION;
FileOutputBuffer &operator=(const FileOutputBuffer &) LLVM_DELETED_FUNCTION;
protected:
FileOutputBuffer(const FileOutputBuffer &); // DO NOT IMPLEMENT
FileOutputBuffer &operator=(const FileOutputBuffer &); // DO NOT IMPLEMENT
FileOutputBuffer(uint8_t *Start, uint8_t *End,
FileOutputBuffer(uint8_t *Start, uint8_t *End,
StringRef Path, StringRef TempPath);
uint8_t *BufferStart;