File tree 14 files changed +42
-0
lines changed
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(
6382
6382
}
6383
6383
6384
6384
namespace {
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.
6385
6388
class BitcodeErrorCategoryType : public std ::error_category {
6386
6389
const char *name () const LLVM_NOEXCEPT override {
6387
6390
return " llvm.bitcode" ;
Original file line number Diff line number Diff line change 5
5
using namespace llvm ;
6
6
using namespace llvm ::pdb;
7
7
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.
8
11
class DIAErrorCategory : public std ::error_category {
9
12
public:
10
13
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;
15
15
using namespace llvm ::pdb;
16
16
17
17
namespace {
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.
18
21
class GenericErrorCategory : public std ::error_category {
19
22
public:
20
23
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;
6
6
using namespace llvm ::pdb;
7
7
8
8
namespace {
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.
9
12
class RawErrorCategory : public std ::error_category {
10
13
public:
11
14
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;
20
20
21
21
namespace {
22
22
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.
23
26
class OrcErrorCategory : public std ::error_category {
24
27
public:
25
28
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 {
34
34
GenericRTDyldError = 1
35
35
};
36
36
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.
37
40
class RuntimeDyldErrorCategory : public std ::error_category {
38
41
public:
39
42
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;
19
19
using namespace object ;
20
20
21
21
namespace {
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.
22
25
class _object_error_category : public std ::error_category {
23
26
public:
24
27
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) {
556
556
llvm_unreachable (" A value of coveragemap_error has no message." );
557
557
}
558
558
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.
559
562
class CoverageMappingErrorCategoryType : public std ::error_category {
560
563
const char *name () const LLVM_NOEXCEPT override { return " llvm.coveragemap" ; }
561
564
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) {
67
67
llvm_unreachable (" A value of instrprof_error has no message." );
68
68
}
69
69
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.
70
73
class InstrProfErrorCategoryType : public std ::error_category {
71
74
const char *name () const LLVM_NOEXCEPT override { return " llvm.instrprof" ; }
72
75
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;
20
20
using namespace llvm ;
21
21
22
22
namespace {
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.
23
26
class SampleProfErrorCategoryType : public std ::error_category {
24
27
const char *name () const LLVM_NOEXCEPT override { return " llvm.sampleprof" ; }
25
28
std::string message (int IE) const override {
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ namespace {
19
19
MultipleErrors
20
20
};
21
21
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.
22
25
class ErrorErrorCategory : public std ::error_category {
23
26
public:
24
27
const char *name () const LLVM_NOEXCEPT override { return " Error" ; }
Original file line number Diff line number Diff line change 17
17
using namespace llvm ;
18
18
19
19
namespace {
20
+ // FIXME: This class is only here to support the transition to llvm::Error. It
21
+ // will be removed once this transition is complete. Clients should prefer to
22
+ // deal with the Error value directly, rather than converting to error_code.
20
23
class cxxdump_error_category : public std ::error_category {
21
24
public:
22
25
const char *name () const LLVM_NOEXCEPT override { return " llvm.cxxdump" ; }
Original file line number Diff line number Diff line change 17
17
using namespace llvm ;
18
18
19
19
namespace {
20
+ // FIXME: This class is only here to support the transition to llvm::Error. It
21
+ // will be removed once this transition is complete. Clients should prefer to
22
+ // deal with the Error value directly, rather than converting to error_code.
20
23
class _readobj_error_category : public std ::error_category {
21
24
public:
22
25
const char * name () const LLVM_NOEXCEPT override ;
Original file line number Diff line number Diff line change 13
13
using namespace llvm ;
14
14
15
15
namespace {
16
+ // FIXME: This class is only here to support the transition to llvm::Error. It
17
+ // will be removed once this transition is complete. Clients should prefer to
18
+ // deal with the Error value directly, rather than converting to error_code.
16
19
class _obj2yaml_error_category : public std ::error_category {
17
20
public:
18
21
const char *name () const LLVM_NOEXCEPT override ;
You can’t perform that action at this time.
0 commit comments