aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
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/Bitcode/Reader/BitcodeReader.cpp
parentdfbdf80962d61fa8b40accba9b6a074f72b5ec3f (diff)
downloadllvm-4718f8b5f133e68a5925bddf0bad0ca3e8394428.zip
llvm-4718f8b5f133e68a5925bddf0bad0ca3e8394428.tar.gz
llvm-4718f8b5f133e68a5925bddf0bad0ca3e8394428.tar.bz2
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/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index f3bd550..9796a10 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -6382,6 +6382,9 @@ std::error_code ModuleSummaryIndexBitcodeReader::initLazyStream(
}
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 BitcodeErrorCategoryType : public std::error_category {
const char *name() const LLVM_NOEXCEPT override {
return "llvm.bitcode";