LLVM: lib/TextAPI/TextAPIError.cpp Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
13
15
16using namespace llvm;
18
20
22 switch (EC) {
24 OS << "no such architecture";
25 break;
27 OS << "invalid input format";
28 break;
29 default:
31 }
32 if (.empty())
33 OS << ": " << Msg;
34 OS << "\n";
35}
36
Define TAPI specific error codes.
void log(raw_ostream &OS) const override
Print an error message to an output stream.
Definition TextAPIError.cpp:21
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
Definition TextAPIError.cpp:37
This class implements an extremely fast bulk output stream that can only output to a stream.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
This is an optimization pass for GlobalISel generic memory operations.