From e964d1d6dda61f1f8f9f4690842977ceeb428cef Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 12 Jun 2014 01:10:47 +0000 Subject: Remove some low hanging fruit from system_error.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210728 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/ErrorOr.h | 16 +++++++++------- include/llvm/Support/system_error.h | 3 --- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/include/llvm/Support/ErrorOr.h b/include/llvm/Support/ErrorOr.h index 625574b88b..e877b6ab9d 100644 --- a/include/llvm/Support/ErrorOr.h +++ b/include/llvm/Support/ErrorOr.h @@ -94,9 +94,10 @@ private: public: template - ErrorOr(E ErrorCode, typename std::enable_if::value || - is_error_condition_enum::value, - void *>::type = 0) + ErrorOr(E ErrorCode, + typename std::enable_if::value || + std::is_error_condition_enum::value, + void *>::type = 0) : HasError(true) { new (getErrorStorage()) error_code(make_error_code(ErrorCode)); } @@ -264,10 +265,11 @@ private: bool HasError : 1; }; -template -typename std::enable_if::value || - is_error_condition_enum::value, bool>::type -operator ==(ErrorOr &Err, E Code) { +template +typename std::enable_if::value || + std::is_error_condition_enum::value, + bool>::type +operator==(ErrorOr &Err, E Code) { return error_code(Err) == Code; } } // end namespace llvm diff --git a/include/llvm/Support/system_error.h b/include/llvm/Support/system_error.h index 9aa00d8745..ad2c99c25c 100644 --- a/include/llvm/Support/system_error.h +++ b/include/llvm/Support/system_error.h @@ -18,9 +18,6 @@ namespace llvm { using std::error_code; -using std::is_error_condition_enum; -using std::is_error_code_enum; -using std::system_category; using std::generic_category; using std::error_category; using std::make_error_code; -- cgit v1.2.3