summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2016-05-24 20:13:46 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2016-05-24 20:13:46 +0000
commit4718f8b5f133e68a5925bddf0bad0ca3e8394428 (patch)
treed972c5a341d0d5e136da884c332dce0bfc7bec6f /llvm/lib/DebugInfo
parentdfbdf80962d61fa8b40accba9b6a074f72b5ec3f (diff)
downloadbcm5719-llvm-4718f8b5f133e68a5925bddf0bad0ca3e8394428.tar.gz
bcm5719-llvm-4718f8b5f133e68a5925bddf0bad0ca3e8394428.zip
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
Diffstat (limited to 'llvm/lib/DebugInfo')
-rw-r--r--llvm/lib/DebugInfo/PDB/DIA/DIAError.cpp3
-rw-r--r--llvm/lib/DebugInfo/PDB/GenericError.cpp3
-rw-r--r--llvm/lib/DebugInfo/PDB/Raw/RawError.cpp3
3 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/PDB/DIA/DIAError.cpp b/llvm/lib/DebugInfo/PDB/DIA/DIAError.cpp
index 647446be577..1d72a92b514 100644
--- a/llvm/lib/DebugInfo/PDB/DIA/DIAError.cpp
+++ b/llvm/lib/DebugInfo/PDB/DIA/DIAError.cpp
@@ -5,6 +5,9 @@
using namespace llvm;
using namespace llvm::pdb;
+// 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 DIAErrorCategory : public std::error_category {
public:
const char *name() const LLVM_NOEXCEPT override { return "llvm.pdb.dia"; }
diff --git a/llvm/lib/DebugInfo/PDB/GenericError.cpp b/llvm/lib/DebugInfo/PDB/GenericError.cpp
index 66b3a7a7fee..34e17999802 100644
--- a/llvm/lib/DebugInfo/PDB/GenericError.cpp
+++ b/llvm/lib/DebugInfo/PDB/GenericError.cpp
@@ -15,6 +15,9 @@ using namespace llvm;
using namespace llvm::pdb;
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 GenericErrorCategory : public std::error_category {
public:
const char *name() const LLVM_NOEXCEPT override { return "llvm.pdb"; }
diff --git a/llvm/lib/DebugInfo/PDB/Raw/RawError.cpp b/llvm/lib/DebugInfo/PDB/Raw/RawError.cpp
index 00eb6e5b24c..037a1aab4b1 100644
--- a/llvm/lib/DebugInfo/PDB/Raw/RawError.cpp
+++ b/llvm/lib/DebugInfo/PDB/Raw/RawError.cpp
@@ -6,6 +6,9 @@ using namespace llvm;
using namespace llvm::pdb;
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 RawErrorCategory : public std::error_category {
public:
const char *name() const LLVM_NOEXCEPT override { return "llvm.pdb.raw"; }
OpenPOWER on IntegriCloud