Mark unimplemented copy constructors and copy assignment operators as LLVM_DELETED_FUNCTION.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164017 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Craig Topper
2012-09-17 07:16:40 +00:00
parent 001d3dc976
commit 9f9ce61972
16 changed files with 39 additions and 37 deletions

View File

@@ -266,8 +266,8 @@ const uint64_t UnknownAddressOrSize = ~0ULL;
/// figure out which type to create.
class ObjectFile : public Binary {
virtual void anchor();
ObjectFile(); // = delete
ObjectFile(const ObjectFile &other); // = delete
ObjectFile() LLVM_DELETED_FUNCTION;
ObjectFile(const ObjectFile &other) LLVM_DELETED_FUNCTION;
protected:
ObjectFile(unsigned int Type, MemoryBuffer *source, error_code &ec);