This repository was archived by the owner on Apr 23, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 14 files changed +42
-0
lines changed
Expand file tree Collapse file tree 14 files changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -6382,6 +6382,9 @@ std::error_code ModuleSummaryIndexBitcodeReader::initLazyStream(
63826382}
63836383
63846384namespace {
6385+ // FIXME: This class is only here to support the transition to llvm::Error. It
6386+ // will be removed once this transition is complete. Clients should prefer to
6387+ // deal with the Error value directly, rather than converting to error_code.
63856388class BitcodeErrorCategoryType : public std ::error_category {
63866389 const char *name () const LLVM_NOEXCEPT override {
63876390 return " llvm.bitcode" ;
Original file line number Diff line number Diff line change 55using namespace llvm ;
66using namespace llvm ::pdb;
77
8+ // FIXME: This class is only here to support the transition to llvm::Error. It
9+ // will be removed once this transition is complete. Clients should prefer to
10+ // deal with the Error value directly, rather than converting to error_code.
811class DIAErrorCategory : public std ::error_category {
912public:
1013 const char *name () const LLVM_NOEXCEPT override { return " llvm.pdb.dia" ; }
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ using namespace llvm;
1515using namespace llvm ::pdb;
1616
1717namespace {
18+ // FIXME: This class is only here to support the transition to llvm::Error. It
19+ // will be removed once this transition is complete. Clients should prefer to
20+ // deal with the Error value directly, rather than converting to error_code.
1821class GenericErrorCategory : public std ::error_category {
1922public:
2023 const char *name () const LLVM_NOEXCEPT override { return " llvm.pdb" ; }
Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ using namespace llvm;
66using namespace llvm ::pdb;
77
88namespace {
9+ // FIXME: This class is only here to support the transition to llvm::Error. It
10+ // will be removed once this transition is complete. Clients should prefer to
11+ // deal with the Error value directly, rather than converting to error_code.
912class RawErrorCategory : public std ::error_category {
1013public:
1114 const char *name () const LLVM_NOEXCEPT override { return " llvm.pdb.raw" ; }
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ using namespace llvm::orc;
2020
2121namespace {
2222
23+ // FIXME: This class is only here to support the transition to llvm::Error. It
24+ // will be removed once this transition is complete. Clients should prefer to
25+ // deal with the Error value directly, rather than converting to error_code.
2326class OrcErrorCategory : public std ::error_category {
2427public:
2528 const char *name () const LLVM_NOEXCEPT override { return " orc" ; }
Original file line number Diff line number Diff line change @@ -34,6 +34,9 @@ enum RuntimeDyldErrorCode {
3434 GenericRTDyldError = 1
3535};
3636
37+ // FIXME: This class is only here to support the transition to llvm::Error. It
38+ // will be removed once this transition is complete. Clients should prefer to
39+ // deal with the Error value directly, rather than converting to error_code.
3740class RuntimeDyldErrorCategory : public std ::error_category {
3841public:
3942 const char *name () const LLVM_NOEXCEPT override { return " runtimedyld" ; }
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ using namespace llvm;
1919using namespace object ;
2020
2121namespace {
22+ // FIXME: This class is only here to support the transition to llvm::Error. It
23+ // will be removed once this transition is complete. Clients should prefer to
24+ // deal with the Error value directly, rather than converting to error_code.
2225class _object_error_category : public std ::error_category {
2326public:
2427 const char * name () const LLVM_NOEXCEPT override ;
Original file line number Diff line number Diff line change @@ -556,6 +556,9 @@ std::string getCoverageMapErrString(coveragemap_error Err) {
556556 llvm_unreachable (" A value of coveragemap_error has no message." );
557557}
558558
559+ // FIXME: This class is only here to support the transition to llvm::Error. It
560+ // will be removed once this transition is complete. Clients should prefer to
561+ // deal with the Error value directly, rather than converting to error_code.
559562class CoverageMappingErrorCategoryType : public std ::error_category {
560563 const char *name () const LLVM_NOEXCEPT override { return " llvm.coveragemap" ; }
561564 std::string message (int IE) const override {
Original file line number Diff line number Diff line change @@ -67,6 +67,9 @@ std::string getInstrProfErrString(instrprof_error Err) {
6767 llvm_unreachable (" A value of instrprof_error has no message." );
6868}
6969
70+ // FIXME: This class is only here to support the transition to llvm::Error. It
71+ // will be removed once this transition is complete. Clients should prefer to
72+ // deal with the Error value directly, rather than converting to error_code.
7073class InstrProfErrorCategoryType : public std ::error_category {
7174 const char *name () const LLVM_NOEXCEPT override { return " llvm.instrprof" ; }
7275 std::string message (int IE) const override {
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ using namespace llvm::sampleprof;
2020using namespace llvm ;
2121
2222namespace {
23+ // FIXME: This class is only here to support the transition to llvm::Error. It
24+ // will be removed once this transition is complete. Clients should prefer to
25+ // deal with the Error value directly, rather than converting to error_code.
2326class SampleProfErrorCategoryType : public std ::error_category {
2427 const char *name () const LLVM_NOEXCEPT override { return " llvm.sampleprof" ; }
2528 std::string message (int IE) const override {
You can’t perform that action at this time.
0 commit comments