From 4718f8b5f133e68a5925bddf0bad0ca3e8394428 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Tue, 24 May 2016 20:13:46 +0000 Subject: Add FIXMEs to all derived classes of std::error_category. This helps make clear that we're moving away from std::error_code. Differential Revision: http://reviews.llvm.org/D20592 llvm-svn: 270604 --- llvm/tools/llvm-readobj/Error.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'llvm/tools/llvm-readobj') diff --git a/llvm/tools/llvm-readobj/Error.cpp b/llvm/tools/llvm-readobj/Error.cpp index 7e6f780c5d1..492eb330949 100644 --- a/llvm/tools/llvm-readobj/Error.cpp +++ b/llvm/tools/llvm-readobj/Error.cpp @@ -17,6 +17,9 @@ using namespace llvm; namespace { +// FIXME: This class is only here to support the transition to llvm::Error. It +// will be removed once this transition is complete. Clients should prefer to +// deal with the Error value directly, rather than converting to error_code. class _readobj_error_category : public std::error_category { public: const char* name() const LLVM_NOEXCEPT override; -- cgit v1.2.3