From f630e49efc7bf3f1716b6daab3c2cc11a908754a Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 16 Sep 2012 21:37:56 +0000 Subject: Use LLVM_DELETED_FUNCTION for copy constructors and copy assignment operators that aren't implemented. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164006 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/system_error.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/llvm/Support/system_error.h') diff --git a/include/llvm/Support/system_error.h b/include/llvm/Support/system_error.h index af812069b9..a36a7bbe67 100644 --- a/include/llvm/Support/system_error.h +++ b/include/llvm/Support/system_error.h @@ -17,6 +17,8 @@ #ifndef LLVM_SYSTEM_SYSTEM_ERROR_H #define LLVM_SYSTEM_SYSTEM_ERROR_H +#include "llvm/Support/Compiler.h" + /* system_error synopsis @@ -629,8 +631,8 @@ public: private: error_category(); - error_category(const error_category&);// = delete; - error_category& operator=(const error_category&);// = delete; + error_category(const error_category&) LLVM_DELETED_FUNCTION; + error_category& operator=(const error_category&) LLVM_DELETED_FUNCTION; public: virtual const char* name() const = 0; -- cgit v1.2.3-18-g5258 From a96a1824747632ce87ef065b4a13fb777d2b14d6 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 23 Sep 2012 02:12:10 +0000 Subject: Add LLVM_OVERRIDE to methods that override their base classes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164471 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/system_error.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/llvm/Support/system_error.h') diff --git a/include/llvm/Support/system_error.h b/include/llvm/Support/system_error.h index a36a7bbe67..0d164f688d 100644 --- a/include/llvm/Support/system_error.h +++ b/include/llvm/Support/system_error.h @@ -653,7 +653,7 @@ public: class _do_message : public error_category { public: - virtual std::string message(int ev) const; + virtual std::string message(int ev) const LLVM_OVERRIDE; }; const error_category& generic_category(); -- cgit v1.2.3-18-g5258