summaryrefslogtreecommitdiff
path: root/include/llvm/Object
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-09-17 07:16:40 +0000
committerCraig Topper <craig.topper@gmail.com>2012-09-17 07:16:40 +0000
commit9f9ce61972871efcf794bdc6125835c2c32cd863 (patch)
tree3a571d10c8a99938078411e7834b2f700f2e424c /include/llvm/Object
parent001d3dc976d7cda8a3dd8c7fd4020b0b96033f4e (diff)
downloadllvm-9f9ce61972871efcf794bdc6125835c2c32cd863.tar.gz
llvm-9f9ce61972871efcf794bdc6125835c2c32cd863.tar.bz2
llvm-9f9ce61972871efcf794bdc6125835c2c32cd863.tar.xz
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
Diffstat (limited to 'include/llvm/Object')
-rw-r--r--include/llvm/Object/Binary.h4
-rw-r--r--include/llvm/Object/ObjectFile.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Object/Binary.h b/include/llvm/Object/Binary.h
index befe812a36..baed81827d 100644
--- a/include/llvm/Object/Binary.h
+++ b/include/llvm/Object/Binary.h
@@ -26,8 +26,8 @@ namespace object {
class Binary {
private:
- Binary(); // = delete
- Binary(const Binary &other); // = delete
+ Binary() LLVM_DELETED_FUNCTION;
+ Binary(const Binary &other) LLVM_DELETED_FUNCTION;
unsigned int TypeID;
diff --git a/include/llvm/Object/ObjectFile.h b/include/llvm/Object/ObjectFile.h
index 2ec656b012..da4cef2266 100644
--- a/include/llvm/Object/ObjectFile.h
+++ b/include/llvm/Object/ObjectFile.h
@@ -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);