We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b98d5b commit d8a4011Copy full SHA for d8a4011
llvm/include/llvm/TextAPI/TextAPIError.h
@@ -21,6 +21,7 @@ enum class TextAPIErrorCode {
21
NoSuchArchitecture,
22
EmptyResults,
23
GenericFrontendError,
24
+ InvalidInputFormat
25
};
26
27
class TextAPIError : public llvm::ErrorInfo<TextAPIError> {
llvm/lib/TextAPI/TextAPIError.cpp
@@ -23,6 +23,9 @@ void TextAPIError::log(raw_ostream &OS) const {
case TextAPIErrorCode::NoSuchArchitecture:
OS << "no such architecture\n";
return;
+ case TextAPIErrorCode::InvalidInputFormat:
+ OS << "invalid input format\n";
28
+ return;
29
default:
30
llvm_unreachable("unhandled TextAPIErrorCode");
31
}
0 commit comments